5

this:

enter image description here

to this:

enter image description here

Is there an API setting to achieve this?

bob_cobb
  • 2,229
  • 11
  • 49
  • 109

2 Answers2

7

Setting any style will turn the logo to white.

That is apparently a design feature from Google to have a more neutral logo aspect (probably in case you change the map colors, it won't "conflict" with your color scheme).

I am not aware of any documented way to specifically set the logo color, but according to this issue (read the 2 comments from the Google assignee) you will get a white logo if you set styles, even to default.

Apparently, just passing an empty styles array works:

var style = [{
  "stylers": [{ 
  }]
}];
MrUpsidown
  • 21,592
  • 15
  • 77
  • 131
1

I'm really unsure why, but adding this to the map's styles (and passed through defaultOptions) seems to make the logo white:

      styles: [
        {
          featureType: 'poi',
          elementType: 'labels.icon',
          stylers: [
            {
              visibility: 'off'
            }
          ]
        }
      ]
bob_cobb
  • 2,229
  • 11
  • 49
  • 109