Leaflet.Control.Layers.Tree
Leaflet.Control.Layers.Tree copied to clipboard
Radiogroup for subgroups
Hi, firts of all thank you very much for this excelent work, my proposal is, if possible, create mutually exclusive subgroups of layers, that is, subgroups with radiogroups
Example:
var overlayLayers = {
label: 'Group 1',
children: [
{ label: 'SubGroup 1',
radioGroup: 'bc',
children: [
{ label: 'Layer 101',
layer: lay101-example
},
...
},
{ label: 'SubGroup 2',
radioGroup: 'bc',
children: [
{ label: 'Layer 201',
layer: lay202-example
},
...
}
]
};
I hope i have explained myself, i know my english is not good but im working on it
That would be very nice, and very useful !