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

map.removeLayer causing problems #9

Closed stratiform closed 8 years ago

stratiform commented 9 years ago

Hello, I'm in the process of trying to add a "toggle all layers" selection, and have noticed that using the map.removeLayer() method external to the panel-layers toggle (such as a click event) causes the panel-layers control to disappear. See example here: http://pastebin.com/MXqafEKg

stefanocudini commented 8 years ago

@stratiform see here for example of operation: http://labs.easyblog.it/maps/leaflet-panel-layers/examples/dynamic-layers.html