Replies: 2 comments
-
As can be read in the docs, text-size supports interpretation but is not data driven: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same requirement and have a working solution with some minor limitations. Although property driven text-size is not officially supported, it seems to be implemented in general. However it has a major bug: it fails over a large zoom-range. https://jsbin.com/xiyahatoli/1/edit?html,output This fails:
This will work with the limitation, than the text can't get infinite large.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am trying to render text at a fixed geographical scale. I have been able to achieve this for geometry properties such as line-width by interpolating based on a zoom value and some property value. However, when I try this approach with text-size it fails to work. It does work when just interpolating based on a fixed constant and zoom value. I have prepared a jsbin with an example of this.
Constant:
Property Driven:
https://jsbin.com/ginahegazu/edit?html,output
Would appreciate any pointers on this.
Many thank,
Jon
Beta Was this translation helpful? Give feedback.
All reactions