Closed chibrams closed 4 years ago
Hi Chibrams,
At present this library does not support a LayerGroup
as input, if you are interested in adding it, I advise you to inspect the source code and propose a pull.
Happy Coding, Raruto
Hi @chibrams
Have you take a look at this example?
That propably should works as you expected (not tested, but i'll probably soon for a project):
var opts = {
map: {
center: [46.08, -77.45],
zoom: 12,
fullscreenControl: false,
resizerControl: true,
},
elevationControl: {
tracks: {
track_1: {
url: "https://chibrams.github.io/Trails/MountMartinTrailf.geojson",
},
track_2: {
url: "chibrams.github.io/Trails/MLoopf.geojson",
},
},
options: {
theme: "lime-theme",
collapsed: false,
detached: true,
summary: "multiline",
},
},
layersControl: {
options: {
collapsed: false,
},
},
};
For those still interested, here it is a simple example: leaflet-elevation_geojson-group.html