-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Scale dependency being ignored on TextSymbolizer #321
Comments
Thanks for the info @jnewmoyer. Which projection are you using on your map client? |
EPSG:4326 |
Could you check if it works for you in EPSG:3857? EPSG:4326 uses degrees as units. Currently, geostyler-openlayers-parser assumes metric units (https://github.com/geostyler/geostyler-openlayers-parser/blob/master/src/OlStyleParser.ts#L537). Adding a switch 'm' / 'degrees' for the second argument there might solve your problem. Would you like to create a PR for that? |
Absolutely. Stand by... |
Seems like you could fix the issue @jnewmoyer. If not please reply or reopen. |
Apologies for never getting to the PR. I don't believe this is fixed though. It seems like scale is always evaluated with Meters in mind:
|
Ok. Thanks for keeping this alive. I was just in tabula rasa mode. 😄 |
Bug
Describe the bug
Converting from SLD to OpenLayers style, my labels are showing at all zoom levels, even though the SLD uses a max scale denominator.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the labels appear only at scales inside of 1:5M.
Desktop (please complete the following information):
Additional context
The geostyler rule after converted:
The text was updated successfully, but these errors were encountered: