From d5dcf96af82bdf74d97429292014c74b6f2007d6 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 3 Aug 2018 16:53:15 +0200 Subject: [PATCH] Let user download GPX trace from menu --- package.json | 2 ++ src/App.vue | 31 ++++++++++++++++++++++++++++++- src/i18n/en.json | 2 ++ yarn.lock | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b25a2b1..97fa6a7 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ }, "dependencies": { "es6-promise": "^4.2.4", + "file-saver": "^1.3.8", + "gps-to-gpx": "^1.3.0", "howler": "^2.0.14", "isomorphic-fetch": "^2.2.1", "leaflet": "^1.3.1", diff --git a/src/App.vue b/src/App.vue index 0faf9e2..6904d18 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,6 +29,9 @@ more_vert + + {{ $t("menu.exportGPX") }} + {{ $t("menu.shareMapView") }} @@ -56,7 +59,11 @@