-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Does the parser support UnitOfMeasure? #892
Comments
Yes, you can pass it to the constructor of the Parser: https://github.com/geostyler/geostyler-sld-parser/blob/master/src/SldStyleParser.ts#L61-L68 It requires But i'm actually not sure if the mapbox-styler-parser already supports this. You might also want to try your style in the demo. |
Thanks. I tried setting the version to 1.1.0. The symbolizerUnits setting is a global setting in the ctor, right? I tried the demo, changed the format to SLD 1.1, the units to meter and increased the width to 100 but I got a very wide line. Looks as if it doesn't work here, too. |
Ok. We will leave this issue open then. This feature is more or less in an experimental stage. |
PR is #893 for symbolizer-specific SLD. Paste it into the demo to see the result. |
Hello,
I wonder whether the parser supports uom in the Symbolizer element,
I got a SLD 1.1 style containing this LineSymbolizer
and I get verrrry wide lines so that the screen is filled. Another LineSymbolizer in the same style without uom and a small width works fine.
I read the SLD style and wrote it to a MB Style and displayed it in MapLibre.
The text was updated successfully, but these errors were encountered: