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
146 stars 36 forks source link

A question re collapsing/expanding #23

Closed ddrury closed 4 years ago

ddrury commented 4 years ago

First thanks for a very nice plugin (now I've got it working 👍 ) I'm trying to get to the situation whereby clicking on a group expands its children but closes any other already expanded groups, I've tried using collapseTree and expandSelected but it seems to work once then locks up. It may be that I'm not sure what to use as the trigger selector (I'm using leaflet-layerstree-header) Thanks for any help