Skip to content

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

@aloboa

Description

@aloboa

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions