user1051849
user1051849

Reputation: 2337

get google maps v3 to make feature completely transparent

We are searching for a way to set the styles on google v3 map so that a given feature - such as water - is transparent (ie shows through to the background beneath the holding div)... ?

We have tried with setting the styling with something like this:

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

but this simply sets the color to the map default which is light blue... when what we want is to see the background layer underneath the whole map...

thanks

Upvotes: 4

Views: 3370

Answers (1)

FrVaBe
FrVaBe

Reputation: 49341

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

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

Sadly it seems that opacity is not a supported styler.

Upvotes: 0

Related Questions