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

Add option to select if a label should be clickable to toggle layer. #10

Closed Michiel-2 closed 4 years ago

Michiel-2 commented 5 years ago

A click on a layer label or name toggles the visibility of the layer in the map. With this pull request, there is an extra option to disable this. Then only a click on the checkbox/radio button toggles the layers.

jjimenezshaw commented 4 years ago

Sorry for the late response. I added some tests for your option. Could you give me permission to push into your branch? Thanks.

Michiel-2 commented 4 years ago

Go ahead. You have no write access to the repository.