Closed gemblev closed 1 year ago
To change the default layers, it should be enough to instantiate your map using any of these options according to your needs:
after that, it should work as you expect as well:
// layersControl: true, // Y must set to true to have IGN map set by default
layersControl: false,
For further info see here 👉 https://github.com/Raruto/leaflet-ui/issues/1#issuecomment-538546557
👋 Raruto
It works very well :) Thanks a lot
Hello,
I inherit functions from the ui 0.3.0 plugin to use your leaflet-elevation 2.4.0 plugin. I would like to use a layer manager other than the layer manager of your ui plugin.
For my layer manager to display the IGN map by default, I have to set the layersControl to true, otherwise the Open Topo Map layer is displayed by default. So I have 2 icons layer manager displayed. How to get only one control, which is the leaflet L.control.layers ?
Here's the code. My comments are in French, but I can translate them if you wish.
Thank you.