-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable variable label placement when {text|icon}-allow-overlap properties are set to true #8527
Comments
Are you expecting it to try different positions looking for one without collisions and only allow a collision if there is no position without a collision? |
@ansis right. Even if |
cc: @pozdnyakov @alexshalamov, for visibility |
Implementation for gl-native mapbox/mapbox-gl-native#15354 |
Whoa! Amazing @pozdnyakov. Should this be left open for the GL JS portion of the work? |
Is it fine, if I make a separate issue in GL Native to track mapbox/mapbox-gl-native#15354 |
In the example below, if
text-allow-overlap
is set totrue
I would still expect variable label placement to work on finding the optimal display. Instead, it appears clustered like this:Here's what my layer looks like:
Mapbox GL JS Version: v1.1.1
And a link to the demo: https://jsfiddle.net/tristen/tpaygf4w/
The text was updated successfully, but these errors were encountered: