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.

-[MGLMapView selectAnnotation:animated:] does not pan map to fit callout view #3249

Closed

Description

@1ec5

When YES is passed into -[MKMapView selectAnnotation:animated:], MKMapView automatically pans so that the entire callout view fits in the viewport. Instead, -[MGLMapView selectAnnotation:animated:]’s animated parameter controls whether the callout view fades in.

A fix for this discrepancy may have to wait until we fix #3154 and #2618.

/cc @incanus @friedbunny

Activity

  1. added
    iOS
    on Dec 10, 2015
  2. added
    MapKit parity
    on Aug 22, 2016
  3. 1ec5 commented on Sep 6, 2017

    @1ec5
    ContributorAuthor

    Now that #6676 has landed, this is no longer blocked.

  4. 1ec5 commented on Oct 13, 2017

    @1ec5
    ContributorAuthor

    This could just be a matter of calling -showAnnotation: within -selectAnnotation:animated:. However, we’d have to take care not to reenter -selectAnnotation:animated: and cause infinite recursion.

  5. 1ec5 commented on Oct 13, 2017

    @1ec5
    ContributorAuthor

    -showAnnotation: puts the annotation in the center of the viewport, which for point annotations would lead to an undesirable wandering effect as the user selects various annotations. But we could craft a simple method that pans the map only enough to show the point annotation and its callout.

  6. added this to the milestone on Dec 20, 2017
  7. 1ec5 commented on Jan 16, 2018

    @1ec5
    ContributorAuthor

    #2600 (comment) illustrates what the fix for this issue might look like inside MGLMapView.

  8. modified the milestones: , ios-v3.7.7 on Mar 12, 2018
  9. julianrex commented on Mar 26, 2018

    @julianrex
    Contributor

    Closing since this was addressed in #11442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MapKit paritybugiOS

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions