Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

When map is tilted, Marker Views don’t scale by distance from camera #5169

Closed
tobrun opened this issue May 27, 2016 · 2 comments
Closed

When map is tilted, Marker Views don’t scale by distance from camera #5169

tobrun opened this issue May 27, 2016 · 2 comments
Labels
Android Mapbox Maps SDK for Android annotations Annotations on iOS and macOS or markers on Android good first issue Good for newcomers

Comments

@tobrun
Copy link
Member

tobrun commented May 27, 2016

Android equivalent of #5040, capturing from that issue:

When the map is tilted, an GL icon or point annotation grows as the camera moves toward it and shrinks as the camera moves away from it (#2186). However, annotation views maintain their size. This behavior is consistent with the user dot, but scaling would help by reinforcing the illusion of a tilted map.

Also capturing that scaling should be default to follow the style spec:

Given that the consensus in mapbox/mapbox-gl-js#2541 was that scaling by default was better, I suspect it will always be the style spec default.

@dylan-chong
Copy link

Any progress on this for Android? It looks like the iOS has been updated a while ago #5085

@tobrun
Copy link
Member Author

tobrun commented Sep 27, 2017

MarkerView is going to be deprecated with #9782. We are no longer maintaining this API and will remove it in future versions of the SDK. As noted in the deprecation message. We are advising users to leverage SymbolLayer instead (you can use the sample code in #9782 to convert Android SDK views to an Image to be used as a Symbol). While we no longer maintain the API we are happy to accept any PRs on it.

@tobrun tobrun closed this as completed Sep 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android annotations Annotations on iOS and macOS or markers on Android good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants