How to know which colour is support for GMSMarker?
Asked Answered
I

1

6

I want to create 20 marker with different on google map.

When i set UIColor from RGB some colour do not match.

teamColor = [UIColor colorWithRed:255.0/255.0 green:250.0/255.0 blue:229.0/255.0 alpha:1]
marker.icon = [GMSMarker markerImageWithColor:teamColor];
//when i set marker to this colour it's show different i want

When i set Black or White it's show Gary.

How to know which colour is support for GMSMarker?

Interrogate answered 13/3, 2014 at 10:18 Comment(0)
M
4

It supports any color you want, but in result you will get not exact color of the marker, because the marker is drawn using some translucent filters and masks. Draw your own UIImage to get exact color and set it to your marker.icon.

Mastiff answered 28/3, 2014 at 12:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.