This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Callout anchor for GL point annotations does not account for viewing-distance scaling on tilted map #5695
Labels
annotations
Annotations on iOS and macOS or markers on Android
archived
Archived because of inactivity
iOS
Mapbox Maps SDK for iOS
macOS
Mapbox Maps SDK for macOS
The callout view for a GL point annotation has an anchor point based on the height of the image (half the height on macOS). When the map is tilted, a GL point annotation is always scaled based on the viewing distance, but the anchor point doesn’t change with viewing distance to reflect this scaling. As a result, the callout view can be positioned too high when the annotation is far away and too low when it’s near the viewpoint.
This issue has the same root cause as #5694 on Android. It does not affect view-backed annotations on iOS, but #5245 would add an API to mbgl that would expose the map’s transform matrix, making it possible to ascertain the GL annotation’s scale.
/cc @boundsj @frederoni
The text was updated successfully, but these errors were encountered: