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

addOrUpdateLayer removes all styles #287

Closed
StefanBrand opened this issue Oct 9, 2023 · 3 comments
Closed

addOrUpdateLayer removes all styles #287

StefanBrand opened this issue Oct 9, 2023 · 3 comments
Labels
bug Something isn't working map

Comments

@StefanBrand
Copy link
Member

StefanBrand commented Oct 9, 2023

When I call addOrUpdateLayer with a different style (possibly multiple times), all features disappear.

@StefanBrand StefanBrand added bug Something isn't working map labels Oct 9, 2023
@RobertOrthofer
Copy link
Collaborator

I could not reproduce this issue, however, #298 removes some unneeded async stuff, so maybe this has to do with it.
Can you maybe share your layer-JSON, so i can have a closer look?

@StefanBrand
Copy link
Member Author

If it comes up during our hackathon next week, I'll copy over the layer JSON.

@StefanBrand
Copy link
Member Author

I am not using this function anymore and rely on setLayers. Possibly the issue was related to an outdated layercontrol, like #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working map
Projects
None yet
Development

No branches or pull requests

2 participants