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.
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.