Created
October 28, 2012 23:06
-
-
Save wboykinm/3970347 to your computer and use it in GitHub Desktop.
B&W, simplified Google base layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initialize() { | |
var styler = [ | |
{ | |
stylers: [ | |
{ saturation: -99 }, | |
{ visibility: "simplified" }, | |
{ lightness: 30 } | |
] | |
},{ | |
featureType: "water", | |
stylers: [ | |
{ saturation: 10 }, | |
{ hue: "#5f6074" }, | |
{ lightness: -19 }, | |
{ visibility: "simplified" } | |
] | |
},{ | |
featureType: "road", | |
elementType: "geometry", | |
stylers: [ | |
{ visibility: "simplified" }, | |
{ lightness: 100 } | |
] | |
},{ | |
featureType: "road", | |
elementType: "labels", | |
stylers: [ | |
{ visibility: "on" }, | |
{ saturation: -98 }, | |
{ lightness: 30 } | |
] | |
},{ | |
featureType: "poi.park", | |
elementType: "geometry", | |
stylers: [ | |
{ visibility: "on" }, | |
{ hue: "#a07c62" }, | |
{ saturation: 10 } | |
] | |
},{ | |
featureType: "administrative.land_parcel", | |
stylers: [ | |
{ hue: "#ff001a" }, | |
{ saturation: 95 }, | |
{ visibility: "off" } | |
] | |
} | |
]; | |
var myOptions = { | |
center: new google.maps.LatLng(44.485, -73.217), | |
zoom: 8, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}; | |
var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions); | |
map.setOptions({styles:styler}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment