leaflet-panel-layers
leaflet-panel-layers copied to clipboard
Select All function
I have implemented "Select All" function to check/uncheck all overlays by group. It works well with several GeoJson Layers.
BUT, trying to add a 26th layer (like "sat", a tileLayer) in the panel group, when I uncomment the snippet below in JS fiddle, the buttons crash: the 3 buttons become unvisible.
This only happens when clicking on the button "Select All" of the first group.
The layer to add can be a tileLayer or GeoJson layer, same results.
Code Example: JsFiddle.
At line 268, I struggle here:
var baseLayers = [
{
name: 'Street',
layer: googleLayer
}//,
//{
// name: 'Satellite',
// layer: sat
//}
];
I don't know if it's the good place to publish this issue. I can delete this post if it disturbs.
Is this plugin still maintained?
solved from version 1.3.0 https://github.com/stefanocudini/leaflet-panel-layers/pull/62