leaflet icon indicating copy to clipboard operation
leaflet copied to clipboard

Group layers within categories in overlayGroups parameter in addLayersControl function

Open PauloJhonny opened this issue 2 years ago • 1 comments

Hi,

I would like to know please if it is possible to group layers within categories ("Landmarks" and "Random" in the example below) in overlayGroups like this:

image

Source: https://github.com/ismyrnow/leaflet-groupedlayercontrol

And if each category had a plus button to open/hide layers list, it would be amazing too.

Thank you so much!

PauloJhonny avatar Aug 25 '23 15:08 PauloJhonny

This plugin is included at leaflet.extras. See https://trafficonese.github.io/leaflet.extras/reference/addGroupedLayersControl.html

trafficonese avatar Apr 23 '25 09:04 trafficonese