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 delegate method for the user location annotation’s position #12203

@1ec5

Description

@1ec5

#11342 proposes adding two new values to the MGLAnnotationVerticalAlignment enumeration that fall between existing values. The existing values clearly aren’t granular enough, but I don’t think we can keep adding new values to accommodate specific applications. Instead, we should add a method to MGLMapViewDelegate that lets the developer decide where the annotation view should be positioned on screen (and thus where the camera’s center coordinate is positioned on screen). This delegate method would be modeled after NavigationViewControllerDelegate.navigationViewController(_:mapViewUserAnchorPoint:), which we introduced in mapbox/mapbox-navigation-ios#402.

/ref #7716 #12147
/cc @frederoni @julianrex

Metadata

Metadata

Labels

annotationsAnnotations on iOS and macOS or markers on AndroidiOSMapbox Maps SDK for iOSnavigationFor the Mapbox Navigation SDK for Android or iOS or navigation use cases in general

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions