Skip to content

Instantly share code, notes, and snippets.

@kpq
Created July 8, 2013 18:07
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 kpq/5951045 to your computer and use it in GitHub Desktop.
Save kpq/5951045 to your computer and use it in GitHub Desktop.
generic + unofficial map styles for NYT google maps
var mapStyles = [ { "elementType" : "all",
"featureType" : "all",
"stylers" : [ { "lightness" : 53 },
{ "gamma" : 0.80000000000000004 },
{ "saturation" : -61 }
]
},
{ "elementType" : "geometry",
"featureType" : "road.local",
"stylers" : [ { "saturation" : -73 },
{ "lightness" : 33 },
{ "gamma" : 0.80000000000000004 },
{ "visibility" : "simplified" }
]
},
{ "elementType" : "geometry",
"featureType" : "road.arterial",
"stylers" : [ { "saturation" : -91 },
{ "gamma" : 0.80000000000000004 },
{ "visibility" : "simplified" },
{ "lightness" : 100 }
]
},
{ "elementType" : "labels",
"featureType" : "road.arterial",
"stylers" : [ { "visibility" : "on" }, { "weight": 0.1 }, { saturation: -70 }, ]
},
// {
// "featureType": "road.arterial",
// "elementType": "geometry.stroke",
// "stylers": [
// { "visibility": "on" },
// { "color": "#808080" }
// ]
// },
{ "elementType" : "geometry",
"featureType" : "road.highway",
"stylers" : [ { "visibility" : "simplified" },
{ "saturation" : -91 },
{ "gamma" : 0.80000000000000004 },
{ "lightness" : 94 }
]
},
{ "elementType" : "labels",
"featureType" : "road.highway",
"stylers" : [ { "visibility" : "simplified" } ]
},
{ "elementType" : "geometry",
"featureType" : "landscape.man_made",
"stylers" : [ { "visibility" : "simplified" },
{ "gamma" : 0 }
]
},
{ "elementType" : "labels",
"featureType" : "poi.park",
"stylers" : [ { "visibility" : "off" } ]
},
{ "elementType" : "labels",
"featureType" : "administrative.locality",
"stylers" : [ { "visibility" : "on" } ]
},
{ "featureType" : "administrative.neighborhood",
"stylers" : [ { "visibility" : "on" } ]
},
{ "featureType" : "transit",
"stylers" : [ { "visibility" : "off" } ]
},
{
"featureType": "poi",
"elementType": "labels",
"stylers": [
{ "visibility": "off" }
]
},
{
"featureType": "administrative.locality",
"elementType": "labels",
"stylers": [
{ "visibility": "off" }
]
},{
"featureType": "administrative.neighborhood",
"stylers": [
{ "visibility": "off" }
]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment