Get google maps v3 to make the feature fully transparent

We are looking for a way to set styles on a google v3 map so that a given function, such as water, is transparent (i.e. displayed in the background under a holding div) ...?

We tried to set the style this way:

var styles = [ { featureType: "water", stylers: [ { color: none } ] }] map.setOptions({styles: styles}); 

but it just sets the color to the default, which is cyan ... when we want to see the background layer under the whole map ...

thanks

+4
source share
1 answer

Check out the Stylized Map Wizard (works best in chrome). You can play with all the options. So maybe this is what you need:

  { "featureType": "water", "elementType": "geometry", "stylers": [ { "visibility": "off" } ] } 

Unfortunately, transparency is not a supported stylist .

+1
source

Source: https://habr.com/ru/post/1469200/


All Articles