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

how to use this with your panel control plugin? #329

Open
iowprow opened this issue Feb 20, 2024 · 1 comment
Open

how to use this with your panel control plugin? #329

iowprow opened this issue Feb 20, 2024 · 1 comment

Comments

@iowprow
Copy link

iowprow commented Feb 20, 2024

I am using your fab panel control plugin to create many layers which go into the control panel to be turned on and off.
All 30 geojson files are called via the

$.getJSON('data.geojson', function(j) { l.addData(j); });

and added to the overLayers object and onto the map via

var panelLayers = new L.Control.PanelLayers(baseLayers, overLayers, { compact: true, //groupCheckboxes: true, collapsibleGroups: true, selectorGroup: true, }); map.addControl(panelLayers);

If I want to search the geojson features added by the above (like your multiple layers example) what layername do I use for the layergroup? I tried using "panelLayers" as above but that didn't work.

Thanks

@dem10com
Copy link

I'm stuck here too. Did you find a solution?

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