Getting a marker from a location and vice versa

Posted on September 30, 2019

If a MPLocation has been displayed on a map, the marker can be retrieved using location.marker. On the opposite, get a MPLocation from a GMSMarker using getLocation(marker: GMSMarker) on MPMapControl:

myMapControl.getLocation(marker : GMSMarker!)