This commit is contained in:
Christian Beutel
2024-03-27 12:06:29 +01:00
parent aca94fd803
commit a5e7f0de86

View File

@@ -242,8 +242,9 @@
})
.on("loaded", function (e: LeafletEvent) {
map.fitBounds(e.target.getBounds());
$form.name = e.target._info.name;
$form.description = e.target._info.desc;
if (!$form.id) {
$form.name = e.target._info.name;
}
$form.distance = Math.round(e.target.get_distance());
$form.elevation_gain = Math.round(
e.target.get_elevation_gain(),