I need to disable L.control.layers when user click's on a certain button and enable when it click's on a seccond button.
Is this possible?
layersleaflet
I need to disable L.control.layers when user click's on a certain button and enable when it click's on a seccond button.
Is this possible?
Best Answer
You could just do it using CSS.
Select the layer control using its class leaflet-control-layers:
And then hide it:
or show it:
In case you are using jQuery:
and: