This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
selectAnnotation changes the tracking mode to None #9455
Labels
annotations
Annotations on iOS and macOS or markers on Android
iOS
Mapbox Maps SDK for iOS
MapKit parity
For feature parity with MapKit on iOS or macOS
Milestone
Platform: ios
Mapbox SDK version: 3.6.0
Steps to trigger behavior
Expected behavior
Selecting an annotation should not be coupled with the tracking mode. In MKMapKit, you can show an annotation while tracking.
I have a use case where the annotations are shown automatically while the user walks. The current hard requirement to return to no tracking breaks this.
A user setting through delegate should allow backward compatible support for the current behavior, while allowing to decouple the tracking mode from the annotation presentation.
Relevant code: https://github.com/mapbox/mapbox-gl-native/blame/ios-v3.6.0/platform/ios/src/MGLMapView.mm#L3794-L3797
Actual behavior
When the callout is shown, the tracking mode forcefully gets changed to MGLUserTrackingModeNone.
The text was updated successfully, but these errors were encountered: