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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Add annotationView to mapView's didSelectAnnotation and didDeselectAnnotation protocol methods #5130
MapKit passes back the annotation view that was (de)selected in - mapView:did(De)SelectAnnotationView. To maintain backwards compatibility with annotation views not backed by an MGLAnnotationView, the Mapbox API currently (and for now must continue to) pass the annotation object itself as in: - mapView:did(De)SelectAnnotation:. However, the Mapbox API can gain the annotationView for a fully formed - mapView:did(De)SelectAnnotation:annotationView:. The annotationView parameter can be nil when it does not make sense to send in (in the context of a non-MGLAnnotationView backed annotation).
This will make it easier for application developers to interact with views that are involved with selection and deselection.
Activity
1ec5 commentedon May 24, 2016
-mapView:did(De)SelectAnnotationView:would be more elegant once #5129 is implemented.[ios] fixes #5127, #5128, #5130 added enabled and selected property t…
[ios] fixes #5127, #5128, #5130 added enabled and selected property t…