Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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

Closed

Description

@boundsj

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

  1. added
    iOSMapbox Maps SDK for iOS
    annotationsAnnotations on iOS and macOS or markers on Android
    on May 24, 2016
  2. 1ec5 commented on May 24, 2016

    @1ec5
    Contributor

    -mapView:did(De)SelectAnnotationView: would be more elegant once #5129 is implemented.

  3. added 2 commits that reference this issue on Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    annotationsAnnotations on iOS and macOS or markers on AndroidfeatureiOSMapbox Maps SDK for iOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions