I would like to have a leaflet control where I can select one of the base layers, and this base layer will be a LayerGroup from which I can select sublayers to display. Iām thinking about customization, when I press the switch to select the base level (group of layers), and underneath it I would look at the list of flags for which layers are displayed in it. Is there a way to do this using the stock level control?
I searched for examples and looked through the Leaflet API, but didn't find anything like it.
source share