-
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
Symbols with icon-text-fit
and text-offset
#8722
Comments
We discovered that we weren't manipulating the collision boxes correctly when It looks like we didn't add a render test for @alexshalamov could you add two render tests: one for using |
@chloekraw What's the ETA for this? |
@lukasmartinelli There is a potential fix for this already in GL-Native, and the JS port is in progress. Confirmation is needed that they correctly address this issue as well. Both those should be available in the upcoming release. |
@chloekraw added new render tests in #8747 |
This is fixed by #8741 |
Expected Behavior
I would expect collision rules to be governed by
text-offset
when a symbol layer is usingicon-text-fit
.Actual Behavior
Here's an example of a layer using
text-offset
vs a layer usingtext-offset
andicon-text-fit
. I would expect the text-offset value to continue to not force a collision with the icon below:mapbox-gl-js version: v1.2.0
browser: Chrome
Version 76.0.3809.132 (Official Build) (64-bit)
Link to Demonstration
https://api.mapbox.com/styles/v1/tristen/cjzu99z8h00qp1co0srxwywwn.html?fresh=true&title=true&access_token={TOKEN}#7.9/43.797847/-79.658695
The text was updated successfully, but these errors were encountered: