Skip to content
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

Add support to handle KML with outline parameter set to 0 #41

Open
ltkum opened this issue Oct 17, 2024 · 0 comments
Open

Add support to handle KML with outline parameter set to 0 #41

ltkum opened this issue Oct 17, 2024 · 0 comments

Comments

@ltkum
Copy link
Contributor

ltkum commented Oct 17, 2024

  • When trying to create a vectorSource from an OpenLayers layer with a KML source, if the outline parameter in the polystyle is set to 0, it currently crashes ( I offer a quick fix in the following PR : Support function in geometries: #40 ) as it tries to set a geometry as a function without any parameter.

  • The issue continues further when we manage to set the geometries, as openlayers create two styles when the outline parameter from a KML source is set to 0, and thus the library creates two features that overlap each other, one with a outline, one without. This causes print jobs to have a wrong opacity and an outline when we want None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant