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

addGroupedLayersControl(): baseGroups should accept list of vectors as overlayGroups does (feature request) #228

Open
aloboa opened this issue Sep 10, 2024 · 2 comments

Comments

@aloboa
Copy link

aloboa commented Sep 10, 2024

See r-spatial/leafem#91

As far as I understand the doc and example of addGroupedLayersControl()
https://trafficonese.github.io/leaflet.extras/reference/addGroupedLayersControl.html ,
only overlayGroups accepts a list of group vectors, thus only overlayGroups can be organized.
In my case, where I need to introduce structure is for base groups:
https://diapiro.geo3bcn.csic.es/alobo/blog/IcelandCampaign2023.html
as I have base layers for the general region and then some layers for specific sub-regions.
Also, in other cases, grouping base layers by type would also make sense.
Could you consider a request feature to accept a list of named group vectors for baseGroups as for overlayGroups ?

@trafficonese
Copy link
Owner

unfortunately the plugin is only for overlay groups..

@aloboa
Copy link
Author

aloboa commented Sep 11, 2024

unfortunately the plugin is only for overlay groups..

Yes, I understand. My feature request is extending it to base groups. Please consider it.

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