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
142 stars 35 forks source link

panel visibility toggle on click #74

Open andreaordonselli opened 2 weeks ago

andreaordonselli commented 2 weeks ago

In case of visible (not collapsed) layerswitcher how can I have a toggle button that hides the layerswitcher and then shows it again?

An example: https://raw.githack.com/walkermatt/ol-layerswitcher/master/examples/activation-mode-click.html

Many thanks

jjimenezshaw commented 2 weeks ago

It is not designed to support it. However you can try to do js magic to show and hide it.