Leaflet.Control.Layers.Tree icon indicating copy to clipboard operation
Leaflet.Control.Layers.Tree copied to clipboard

Radiogroup for subgroups

Open fernakasa opened this issue 4 years ago • 1 comments

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

fernakasa avatar Apr 29 '21 16:04 fernakasa

That would be very nice, and very useful !

olivbrau avatar May 28 '21 07:05 olivbrau