Open jnewmoyer opened 3 years ago
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: https://github.com/geostyler/geostyler-openlayers-parser/blob/78c9ee318bec348a9c4cd6da1b5d8c192f12c225/src/OlStyleParser.ts#L772
Ok. Thanks for keeping this alive. I was just in tabula rasa mode. :smile:
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: