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 reference DOM label selector in tree [upon selection] #64

Closed cspence001 closed 1 year ago

cspence001 commented 1 year ago

Is there a way to have the tree selection reference an object request? Right now I have an HTML selection that first requests a json file through an click() event in javascript that parses the data to create circle markers with attributes sorted into layerGroups that are filtered through an overlay layer control module upon selection from the tree.

What I would like to do is instead trigger the request for the object when it is selected through the tree to then subsequently parse the data in the function that creates the circle markers and sorts them into layerGroups.

jjimenezshaw commented 1 year ago

Sorry @cspence001 I do not understand what you want to do. Could you explain it in a different way? Simple samples are always useful.

cspence001 commented 1 year ago

nice updates