adds gpx rte tag to maps

This commit is contained in:
Christian Beutel
2024-05-05 12:31:08 +02:00
parent 844d5771e8
commit 930feda4d6
7 changed files with 15 additions and 14 deletions

View File

@@ -79,7 +79,7 @@
weight: 5,
},
gpx_options: {
parseElements: ["track"] as any,
parseElements: ["track", "route"] as any,
},
marker_options: {
startIcon: L.AwesomeMarkers.icon({
@@ -93,7 +93,7 @@
shadowUrl: "",
},
})
.on("loaded", function (e) {
.on("loaded", function (e) {
map.fitBounds(e.target.getBounds());
})
.addTo(map);