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 centerOffset property to MGLAnnotationView #5059

Closed

Description

@boundsj

MapKit has a centerOffset property available on MKAnnotationView that allows one "to reposition the annotation view as needed" from the default center point of the annotation model object itself. We should add this feature to MGLAnnotationView.

fyi @1ec5 @friedbunny @tobrun

Activity

  1. added
    iOS
    annotations
    on May 17, 2016
  2. 1ec5 commented on May 17, 2016

    @1ec5
    Contributor

    Getting this functionality into MGLAnnotationImage is being tracked in #3220 / #2151, but that’s blocked by the need for a dynamic styling API. Getting it into MGLAnnotationView neatly avoids that mess.

  3. added a commit that references this issue on May 18, 2016
  4. added a commit that references this issue on May 18, 2016
    e8ea748
  5. added this to the ios-v3.3.0 milestone on May 18, 2016
  6. domasn commented on Jul 28, 2016

    @domasn

    @1ec5 It seems that you forgot to take MGLAnnotationView.centerOffset into account when getting an annotation at point.

    This results in didSelectAnnotation delegate method being called unreasonably..

  7. 1ec5 commented on Jul 28, 2016

    @1ec5
    Contributor

    Good catch, @domasn! Please open a new issue for this case.

  8. friedbunny commented on Jul 28, 2016

    @friedbunny
    Contributor

    @domasn @1ec5 this issue was opened just now as #5820.

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

    annotationsfeatureiOS

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions