Open Rakhee06 opened 6 months ago
I have not tested the library with leaflet 1.9.8 (and I do not know when I will have time for that). I don't know if the problem is due to the different version of leaflet.
I am bit confused with the layers in the tree. As they are tileLayers, there can be only one. Having Germany inside of France, and osm and esri inside of Germany sounds to me that there is something wrong. And those layers are not defined in your code.
If you want overlay layer, you have to use the second parameter, that is undefined
in your example.
It is better to create a complete piece of code that can be tested, without any other dependency (only leaflet and this plugin).
Thank you for getting back to me so quickly! My goal is to have multiple base layers, each with its own tile layer, and then add multiple overlays on top of the selected base layers. Right now, I'm experimenting with just adding different base layers. I appreciate your suggestion to test the code without any dependencies. I'll let you know how it goes. Thank you again!
hi,
Thank for the library! I am new to leaflet and still trying to wrap my head around the implementation/plugins. I am trying to use
Leaflet.Control.Layers.Tree
package in Next.js application. Using the following versions:When I create a base tree and try to add it to the map, I see 4 control panels. In addition, the controls also doesn't work. I am not sure if I am missing something in the implementation. Any help is much appreciated. Thank you!
Result: