fixes #30
This commit is contained in:
@@ -242,8 +242,9 @@
|
|||||||
})
|
})
|
||||||
.on("loaded", function (e: LeafletEvent) {
|
.on("loaded", function (e: LeafletEvent) {
|
||||||
map.fitBounds(e.target.getBounds());
|
map.fitBounds(e.target.getBounds());
|
||||||
|
if (!$form.id) {
|
||||||
$form.name = e.target._info.name;
|
$form.name = e.target._info.name;
|
||||||
$form.description = e.target._info.desc;
|
}
|
||||||
$form.distance = Math.round(e.target.get_distance());
|
$form.distance = Math.round(e.target.get_distance());
|
||||||
$form.elevation_gain = Math.round(
|
$form.elevation_gain = Math.round(
|
||||||
e.target.get_elevation_gain(),
|
e.target.get_elevation_gain(),
|
||||||
|
|||||||
Reference in New Issue
Block a user