Skip to content
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

Select All function #48

Closed
lc-4918 opened this issue Mar 9, 2019 · 2 comments
Closed

Select All function #48

lc-4918 opened this issue Mar 9, 2019 · 2 comments

Comments

@lc-4918
Copy link

lc-4918 commented Mar 9, 2019

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 lc-4918 changed the title is there max number of layers Select All function Mar 11, 2019
@lc-4918
Copy link
Author

lc-4918 commented Apr 3, 2019

Is this plugin still maintained?

@stefanocudini
Copy link
Owner

solved from version 1.3.0 #62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants