Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created October 28, 2012 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wboykinm/3970347 to your computer and use it in GitHub Desktop.
Save wboykinm/3970347 to your computer and use it in GitHub Desktop.
B&W, simplified Google base layer
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