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

Have all trees collapsed by default? #11

Closed hjrobinson closed 5 years ago

hjrobinson commented 5 years ago

Sorry. I should have tested using the examples provided. Example: var layerControl = L.control.layers.tree(baseTree).addTo(map); layerControl.collapseTree(false);