jjimenezshaw / Leaflet.Control.Layers.Tree

a Tree Layers Control for Leaflet
https://jjimenezshaw.github.io/Leaflet.Control.Layers.Tree/examples/basic.html
BSD 3-Clause "New" or "Revised" License
148 stars 36 forks source link

Exclusive Group Layers #4

Closed mpbotti closed 6 years ago

mpbotti commented 6 years ago

Hi Javier! I am making the last adjustments to my map and I realized that your tool does not allow define a group of exclusive layers that can be selected one at a time (as the basemaps does...). I have a bunch of layers with wind forecast every three hours and I want to select only one each time. Could you please include this functionality in next releases? Many thanks for your time, M.

jjimenezshaw commented 6 years ago

I guess you mean the radioGroup attribute (already explained at the end of the readme)

mpbotti commented 6 years ago

Yes I saw it, and tried to make it works, but I cant do it... yet! I keep trying though... Thanks...

jjimenezshaw commented 6 years ago

Look at this example https://jjimenezshaw.github.io/Leaflet.Control.Layers.Tree/examples/options.html

mpbotti commented 6 years ago

Damn! The only one thing I did not try... Thank you!