You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Have annotations on screen, with callouts supported
Tap on an annotation, -mapView:didSelectAnnotationView: will be called
Programmatically center the map on the selected annotation
Expected behavior
You should be able to move the map around (at a minimum programmatically, but even user interaction) while an annotation is selected, and it should remain selected. This is also how MKMapView works, you can select an annotation and programmatically center/move the map, and it will remain active. Even user map moves allows the annotation to remain active unless programmatically deselected or a user tap, or another annotation being selected.
Platform: iOS
Mapbox SDK version: v3.3.4
Steps to trigger behavior
-mapView:didSelectAnnotationView:
will be calledExpected behavior
You should be able to move the map around (at a minimum programmatically, but even user interaction) while an annotation is selected, and it should remain selected. This is also how
MKMapView
works, you can select an annotation and programmatically center/move the map, and it will remain active. Even user map moves allows the annotation to remain active unless programmatically deselected or a user tap, or another annotation being selected.Actual behavior
The annotation will be immediately deselected.
MGLMapView
is deselecting the annotation here: https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/src/MGLMapView.mm#L4432-L4437The text was updated successfully, but these errors were encountered: