stefanocudini / leaflet-panel-layers

Leaflet Control Layers extended with support groups and icons
https://opengeo.tech/maps/leaflet-panel-layers/
MIT License
286 stars 92 forks source link

dynamic control #40

Closed mmirhi closed 1 year ago

mmirhi commented 6 years ago

Hi

I am working on a map in which the user can select an option from a slider and depending on that option, I read a certain file and load it as an overlayer. I am using this great plugin to organize my overlayer groups. I am listening to the 'update' event of the slider. My issue is that everytime an option is chosen, the entire control panel is removed and reloaded, which makes the map very slow. Is there an update function of the control panel that wouldn't remove it?

Thank you

stefanocudini commented 1 year ago

https://opengeo.tech/maps/leaflet-panel-layers/examples/dynamic-layers.html