From 1f3aabda3735e1620031cbab32f7a60942da61a2 Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Sat, 29 Mar 2025 14:27:55 +0100 Subject: [PATCH] adds proper total calculation for routing --- .../trail/map_with_elevation_maplibre.svelte | 2 +- .../trail/routing_options_popup.svelte | 12 +++--- web/src/lib/models/valhalla.ts | 42 ++++++++++++++++--- web/src/lib/stores/valhalla_store.ts | 13 +++++- web/src/routes/trail/edit/[id]/+page.svelte | 2 +- 5 files changed, 56 insertions(+), 15 deletions(-) diff --git a/web/src/lib/components/trail/map_with_elevation_maplibre.svelte b/web/src/lib/components/trail/map_with_elevation_maplibre.svelte index 5a4335d1..916814cf 100644 --- a/web/src/lib/components/trail/map_with_elevation_maplibre.svelte +++ b/web/src/lib/components/trail/map_with_elevation_maplibre.svelte @@ -196,7 +196,7 @@ }, } as GeoJSON); } - }); + }); return r; } diff --git a/web/src/lib/components/trail/routing_options_popup.svelte b/web/src/lib/components/trail/routing_options_popup.svelte index 538fb5e5..ed28ec69 100644 --- a/web/src/lib/components/trail/routing_options_popup.svelte +++ b/web/src/lib/components/trail/routing_options_popup.svelte @@ -1,16 +1,14 @@