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

How to change the title (hint text) of toggle button? #63

Closed carlshe closed 2 years ago

carlshe commented 2 years ago

For different language, how to set the title (hint text) of toggle button? Thanks!

jjimenezshaw commented 2 years ago

Which toggle button do you mean exactly? If it is the control itself, it behaves like Control.Layers. For anything inside the tree, you can use standard HTML.

carlshe commented 2 years ago

Thank you very much! Yes. What I mean is the the toggle button itself. I found the code in Control.Layers. It is not public. So I had to set it by modifying the code.