Reputation: 23510
How may I show an arrow that shows the users direction instead (over ?) the existing blue dot in the MapKit on a GoogleMap view ?
Upvotes: 0
Views: 431
Reputation: 135548
From the documentation of the mapView:viewForAnnotation:
delegate method:
If the object in the annotation parameter is an instance of the MKUserLocation class, you can provide a custom view to denote the user’s location. To display the user’s location using the default system view, return nil.
So you should do just that. Check the class of the annotation for MKUserLocation
and in case of a successful match, return a custom view. You must take care to update this view yourself whenever the user's heading changes.
Upvotes: 1