Created
November 18, 2015 22:25
-
-
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
This file contains hidden or 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
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