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

External layers file definition #5

Closed mpbotti closed 6 years ago

mpbotti commented 6 years ago

Hi everyone! I'm making a web mapping page for my job. I have an extensive layers list, and my Index.html is also huge. I want to put the layers list in a separate file, so I can call this file later from my index.html and choose the layers I want to display. I'm using leaflet.layers.tree as the plugin to manage my layers. In this fiddle you can see a quick and dirty example of what I'm doing (https://jsfiddle.net/mbotti/z3f4x0w7/696/). Any suggestion will be well received. And a working example much more! Regards, M.

mpbotti commented 6 years ago

Don't bother, I already did it...