I just switched from Apple Maps to Google Maps. An issue that I can't seem to find an answer to is how do you make the icon for a GMSMarker to start from the center rather then from the bottom of the image.
An example of what I mean is the current location dot icon starts centered at the coordinates it is meant to express. However GMSMarkers icons start from the bottom of the icon.
I figured out how to do it after reading Google Maps Documentation very closely. I believe this is how it was intended to be done.
You can change the start position of your marker icon with the property
groundAnchor
.Google Maps SDK for iOS documentation:
Example: