Skip to content

Instantly share code, notes, and snippets.

@revox
Created November 18, 2015 22:25
Show Gist options
  • Save revox/c4a9d420abff063420d1 to your computer and use it in GitHub Desktop.
Save revox/c4a9d420abff063420d1 to your computer and use it in GitHub Desktop.
Google Maps API styler fragment, paste this into the HTML and JavaScript output from the Fusion Tables Publish function to style the base map
var customMapType = new google.maps.StyledMapType([
{
stylers: [
{hue: '#890000'},
{visibility: 'simplified'},
{gamma: 0.5},
{weight: 0.5}
]
},
{
elementType: 'labels',
stylers: [{visibility: 'off'}]
},
{
featureType: 'water',
stylers: [{color: '#890000'}]
}
], {
name: 'Custom Style'
});
var customMapTypeId = 'custom_style';
map.mapTypes.set(customMapTypeId, customMapType);
map.setMapTypeId(customMapTypeId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment