Say you have a fixed pin in the middle of the screen using an UIImageView
on top of the GMSMapView
. At some point in the flow I need to remove the fixed pin and add it as a marker in the map.
One could do so by setting the fixed pin hidden
property to true
and then adding a GMSMarker
in the center of the map using the same asset as the UIImageView
. That works except that there is a visual glitch since adding the marker touches the OpenGL layer whether hiding the pin uses UIKit
.
Is there any way to synchronize these two operations?