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 Dynamic Child Layers #26

Closed Dinuxax100 closed 4 years ago

Dinuxax100 commented 4 years ago

Hi,

In Control.Layers.Tree, how to add the children layers dynamically?

After the service call only, I am getting the layer data. Service returning the data, but not shown in the Map.

jjimenezshaw commented 4 years ago

You cannot add children dynamically. In case you want to add more layers, you have to recreate the tree. Sorry about that.