-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
icon-text-fit should work with text-variable-anchor #8583
Comments
@asheemmamoowala yes, it is a bug, we need to offset an icon together with a text. Also, would be nice to document that in a spec as well. |
@alexshalamov, would be nice to document in the spec now that this property doesn't work with |
@chloekraw please disregard my comment, after checking the spec, I think it should be clear how |
@ansis could you please take a look at gl-native fix in mapbox/mapbox-gl-native@19a49a5 Also, I had to fix it for combination of |
@alexshalamov thanks for the investigation and proposed fix. per chat, I'm tracking that your next steps here are to split those commits out into a separate PR on GL-Native and to open a PR with render tests on GL-JS. |
@chloekraw GL-Native PR #15367 render tests #8625 |
Fixed in v1.4.0-beta.1 |
Expected Behavior
When using these properties on a layer:
I would expect both the icon that's been fitted under the label and the label to be variably placed.
Actual Behavior
Here's a label using a icon-text-fit background
text-variable-anchor
text-variable-anchor
mapbox-gl-js version: v1.1.0
browser: Chrome
Version 75.0.3770.142 (Official Build) (64-bit)
Link to Demonstration
https://jsfiddle.net/tristen/830prsyz/
The text was updated successfully, but these errors were encountered: