geostyler / geostyler-openlayers-parser

GeoStyler Style Parser implementation for OpenLayers styles
BSD 2-Clause "Simplified" License
36 stars 26 forks source link

Clone style to avoid manipulation #741

Closed KaiVolland closed 12 months ago

KaiVolland commented 1 year ago

Description

This PR makes use of structuredClone when writing the style to avoid manipulation of the input object.

It also pushes null to the styles array when the visibilty of a symbolizer is set to false.

Related issues or pull requests

Fixes #740

Pull request type

Please check the type of change your PR introduces:

Do you introduce a breaking change?

Checklist