leaflet-panel-layers icon indicating copy to clipboard operation
leaflet-panel-layers copied to clipboard

Select All function

Open lc-4918 opened this issue 5 years ago • 1 comments

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.

lc-4918 avatar Mar 09 '19 21:03 lc-4918

Is this plugin still maintained?

lc-4918 avatar Apr 03 '19 14:04 lc-4918

solved from version 1.3.0 https://github.com/stefanocudini/leaflet-panel-layers/pull/62

stefanocudini avatar Nov 17 '22 00:11 stefanocudini