From f6cd4da5290846007b5067dfff32bfa1358e2303 Mon Sep 17 00:00:00 2001 From: Atharva Sawant Date: Fri, 8 Nov 2024 15:44:29 +0530 Subject: [PATCH] Added track visualization - Render GPX tracks on map - Statistics dashboard with total distance, duration, elevation - Reactive updates when tracks are added --- src/App.vue | 29 ++++++++++++++- src/components/MapView.vue | 72 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 98 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index b63b4fb..dc1862f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,12 +8,39 @@

Your Cycling Tracks

- +
+ + +
+

Statistics

+
+
+
{{ totalStats.totalTracks }}
+
Total Tracks
+
+
+
{{ totalStats.totalDistance }}
+
Total Distance (km)
+
+
+
{{ totalStats.totalDuration }}
+
Total Hours
+
+
+
{{ totalStats.avgSpeed }}
+
Avg Speed (km/h)
+
+
+
{{ totalStats.totalElevationGain }}
+
Elevation Gain (m)
+
+
+
diff --git a/src/components/MapView.vue b/src/components/MapView.vue index 53350a7..eef1893 100644 --- a/src/components/MapView.vue +++ b/src/components/MapView.vue @@ -3,13 +3,20 @@