Reputation: 101
Cheers.
I need get map via google maps api and override water color with hex. Now my api url looks like that: http://maps.googleapis.com/maps/api/staticmap?center=53.85589,27.45345&zoom=16&size=512x512&style=feature:water|color:#0099dd
But water doesn't change color. If i'm replace #0099dd with red, that's works fine.
I thinks there the problem with "#" symbol. I tried to replace that with %25, but it's still doesn't work.
Upvotes: 0
Views: 2128
Reputation: 161384
Look at the documentation. Hex colors are preceded with 0x
. This works for me:
Upvotes: 5
Reputation: 81
The Google Static Maps expects colours formatted as 0x0099dd.
It should work if you change your url to:
http://maps.googleapis.com/maps/api/staticmap?center=53.85589,27.45345&zoom=16&size=512x512&style=feature:water|color:0x0099dd
Source: Google Static Maps Developer Guide
Upvotes: 2