-
Notifications
You must be signed in to change notification settings - Fork 120
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
Text-padding property does not work #242
Comments
What is the result you are expecting? The |
The |
hi@ ahocevar Thanks for your work very much,I want to use this setting "text-padding": {"stops": [[13, 1], [14, 1], [15, 2], [16, 4], [17, 5], [18 , 5]]}, the text of the road is marked at different intervals at different levels,In vector map |
Ah I see, you are talking about labels along lines. That cannot be controlled in OpenLayers, so these paddings will only ensure a minimum distance between labels, but not influence the exact positioning. |
Set the text-padding value in the style sheet. You can read this value in the stylefunction, but it doesn't work. I don't know if I use Chinese.
The text was updated successfully, but these errors were encountered: