How do I know which color GMSMarker supports?

I want to create 20 markers with different ones on google map.

When I install UIColor from RGB, some colors 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 show different i want

When I set black or white, it shows Gary.

How do I know which color GMSMarker supports?

+4
source share
1 answer

It supports any color you want, but as a result you get an inaccurate marker color, because the marker is drawn using some translucent filters and masks. Draw your own UIImage to get the exact color and set it to your marker.icon.

+3
source

Source: https://habr.com/ru/post/1531537/


All Articles