foo
This commit is contained in:
99
website/Boson/htdocs/js/gmaps/colored.js
Normal file
99
website/Boson/htdocs/js/gmaps/colored.js
Normal file
@@ -0,0 +1,99 @@
|
||||
// GOOGLE MAP - COLORED
|
||||
google.maps.event.addDomListener(window, 'load', init);
|
||||
|
||||
function init() {
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
center: new google.maps.LatLng(40.6700, -73.9400), // New York
|
||||
|
||||
styles:
|
||||
|
||||
[{
|
||||
"featureType": "all",
|
||||
"elementType": "geometry.stroke",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "all",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "administrative.locality",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "administrative.neighborhood",
|
||||
"elementType": "labels.text.fill",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "landscape",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#01C5FF"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi.attraction",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#002573"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi.business",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#FFED00"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi.government",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#D41C1D"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi.park",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#002FA7"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi.school",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#BF0000"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#FCFFF6"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "transit.line",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}]
|
||||
}, {
|
||||
"featureType": "water",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [{
|
||||
"color": "#BCF2F4"
|
||||
}]
|
||||
}]
|
||||
};
|
||||
|
||||
var mapElement = document.getElementById('map-colorful');
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
var marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(40.6700, -73.9400),
|
||||
map: map,
|
||||
title: 'Snazzy!'
|
||||
});
|
||||
}
|
||||
99
website/Boson/htdocs/js/gmaps/default.js
Normal file
99
website/Boson/htdocs/js/gmaps/default.js
Normal file
@@ -0,0 +1,99 @@
|
||||
// GOOGLE MAP - DEFAULT
|
||||
google.maps.event.addDomListener(window, 'load', init);
|
||||
|
||||
function init() {
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
center: new google.maps.LatLng(40.6700, -73.9400), // New York
|
||||
styles: [{
|
||||
"featureType": "administrative.land_parcel",
|
||||
"elementType": "all",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "landscape.man_made",
|
||||
"elementType": "all",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "simplified"
|
||||
}, {
|
||||
"lightness": 20
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.highway",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"hue": "#f49935"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.highway",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "simplified"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.arterial",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"hue": "#fad959"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.arterial",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.local",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"visibility": "simplified"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.local",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "simplified"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "transit",
|
||||
"elementType": "all",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "water",
|
||||
"elementType": "all",
|
||||
"stylers": [{
|
||||
"hue": "#a1cdfc"
|
||||
}, {
|
||||
"saturation": 30
|
||||
}, {
|
||||
"lightness": 49
|
||||
}]
|
||||
}]
|
||||
|
||||
};
|
||||
|
||||
var mapElement = document.getElementById('map-default');
|
||||
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
|
||||
var marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(40.6700, -73.9400),
|
||||
map: map,
|
||||
title: 'Snazzy!'
|
||||
});
|
||||
}
|
||||
97
website/Boson/htdocs/js/gmaps/greyscale.js
Normal file
97
website/Boson/htdocs/js/gmaps/greyscale.js
Normal file
@@ -0,0 +1,97 @@
|
||||
// GOOGLE MAP - GREYSCALE
|
||||
google.maps.event.addDomListener(window, 'load', init);
|
||||
|
||||
function init() {
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
|
||||
center: new google.maps.LatLng(40.6700, -73.9400), // New York
|
||||
|
||||
styles: [{
|
||||
"featureType": "landscape",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}, {
|
||||
"lightness": 65
|
||||
}, {
|
||||
"visibility": "on"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "poi",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}, {
|
||||
"lightness": 51
|
||||
}, {
|
||||
"visibility": "simplified"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.highway",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}, {
|
||||
"visibility": "simplified"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.arterial",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}, {
|
||||
"lightness": 30
|
||||
}, {
|
||||
"visibility": "on"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "road.local",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}, {
|
||||
"lightness": 40
|
||||
}, {
|
||||
"visibility": "on"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "transit",
|
||||
"stylers": [{
|
||||
"saturation": -100
|
||||
}, {
|
||||
"visibility": "simplified"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "administrative.province",
|
||||
"stylers": [{
|
||||
"visibility": "off"
|
||||
}]
|
||||
}, {
|
||||
"featureType": "water",
|
||||
"elementType": "labels",
|
||||
"stylers": [{
|
||||
"visibility": "on"
|
||||
}, {
|
||||
"lightness": -25
|
||||
}, {
|
||||
"saturation": -100
|
||||
}]
|
||||
}, {
|
||||
"featureType": "water",
|
||||
"elementType": "geometry",
|
||||
"stylers": [{
|
||||
"hue": "#ffff00"
|
||||
}, {
|
||||
"lightness": -25
|
||||
}, {
|
||||
"saturation": -97
|
||||
}]
|
||||
}]
|
||||
};
|
||||
|
||||
var mapElement = document.getElementById('map-greyscale');
|
||||
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
|
||||
var marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(40.6700, -73.9400),
|
||||
map: map,
|
||||
title: 'Snazzy!'
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user