You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Converting from SLD to OpenLayers style, offsets on MarkSymbolizer are no longer handled, even though the SLD uses displacement. Displacement is transformed to undefined.
To Reproduce
Steps to reproduce the behavior:
Create an SLD with a Mark style and Displacement.
Convert the style to geostyler and then to OpenLayers
As you always got so far with the research it would be nice if you could provide a PR with the adjustment and the corresponding tests.
Otherwise this might need some time to be fixed.
Bug
Describe the bug
Converting from SLD to OpenLayers style, offsets on MarkSymbolizer are no longer handled, even though the SLD uses displacement. Displacement is transformed to
undefined
.To Reproduce
Steps to reproduce the behavior:
Example:
Expected behavior
offset
property should not be undefinedDesktop (please complete the following information):
OS: Mac OS
Browser: Chrome
Version: 122.0
Additional context
The bug has been introduced here:
geostyler-openlayers-parser/src/OlStyleParser.ts
Line 1046 in 2d8a804
Proposed solution
offset
is not anumber
, it is anarray
, so we could checkArray.isArray(offset)
The text was updated successfully, but these errors were encountered: