Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know which colour is support for GMSMarker?

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?

like image 780
user2955394 Avatar asked Oct 21 '22 12:10

user2955394


1 Answers

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.

like image 59
Alena Avatar answered Oct 23 '22 01:10

Alena