Leaflet.FeatureGroup.SubGroup demo page

Compatibility with L.Control.Layers to display Nested Groups

Use the top right Layers Control to dynamically add / remove Groups from the map.

Markers are actually added to the Parent Group, so that they are visible on map only when Parent Group is also on map (as if child groups were nested into Parent Group).

This is the standard Leaflet Layers Control.

Leaflet Leaflet.FeatureGroup.SubGroup


Note: local version is available only in local development and if dist files have been built.