-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
what's the proper way to replace a map overlay ? #343
Comments
How I would solve this:
|
thanks, but this would require me to hold a class level referne for everytying i add to the map (like markers and layers btw is there a way to use an image obtained dynamically (like for example if you get a base64 encoding string from another server), i saw there is some way to register a dynamic resource in vaadin, but it doesn't seem to work with leaflet |
No problem :)
Well you can just hold the Layers and then call I created an example similar to your use case in our demo:
Do you mean from the client side? If yes, don't do that since clientside data can easily manipulated and therefore data integrity is no longer guaranteed. It's also not implemented in the library for exactly this reason :)
For what exactly? |
so basically i can do something like this:
|
This issue will be closed soon because there has been no response. |
can i use clearLayers instead of remove? |
so far i've only seen methods that either remove or add a map
so assuming i have a tree on the left like so, i'd like to map and it's markers to be replaced.
but all of them are kept beeing added using addTo and i'm assuming they won't be cleared off the compoenent registry
The text was updated successfully, but these errors were encountered: