Skip to content
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

Closed
1ec5 opened this issue Jul 14, 2016 · 1 comment
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

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jul 14, 2016

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

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS annotations Annotations on iOS and macOS or markers on Android labels Jul 14, 2016
@stale stale bot added the archived Archived because of inactivity label Nov 18, 2018
@stale
Copy link

stale bot commented Nov 20, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

1 participant