From 3dac7ebb2c2fa14d8d8eebb75b627a50c5bcf31b Mon Sep 17 00:00:00 2001 From: Timo Volkmann Date: Sat, 1 Jun 2019 15:44:48 +0200 Subject: [PATCH] Station: choose coordinates on map --- .../frontend/package.json | 4 +- .../frontend/src/components/mapClickable.vue | 408 ++++++++++++++++++ .../frontend/src/pages/Cache.vue | 4 +- .../frontend/src/pages/StationEdit.vue | 44 +- .../frontend/src/statics/map-marker_blue.svg | 18 - .../frontend/src/statics/map-marker_green.svg | 18 - .../frontend/src/statics/map-marker_grey.svg | 19 - .../src/statics/map-marker_yellow.svg | 18 - 8 files changed, 441 insertions(+), 92 deletions(-) create mode 100644 labswp_2019_sose_geocaching_frontend/frontend/src/components/mapClickable.vue delete mode 100644 labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_blue.svg delete mode 100644 labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_green.svg delete mode 100644 labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_grey.svg delete mode 100644 labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_yellow.svg diff --git a/labswp_2019_sose_geocaching_frontend/frontend/package.json b/labswp_2019_sose_geocaching_frontend/frontend/package.json index 0657383..f262cce 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/package.json +++ b/labswp_2019_sose_geocaching_frontend/frontend/package.json @@ -19,7 +19,9 @@ "openlayers": "^4.6.5", "quasar": "^1.0.0-rc.2", "vue-qrcode-reader": "^1.4.2", - "vuelayers": "^0.11.4" + "vuelayers": "^0.11.4", + "lodash": "^4.17.11", + "ol": "^5.3.1" }, "devDependencies": { "@quasar/app": "^1.0.0-rc.4", diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/components/mapClickable.vue b/labswp_2019_sose_geocaching_frontend/frontend/src/components/mapClickable.vue new file mode 100644 index 0000000..9687ea3 --- /dev/null +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/components/mapClickable.vue @@ -0,0 +1,408 @@ + + + + + diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Cache.vue b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Cache.vue index e3784e1..edb0978 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Cache.vue +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Cache.vue @@ -251,8 +251,8 @@ } }, validateRankingPoints: function () { - var re = new RegExp('^[0-9]+$'); - var rps = String.valueOf(this.computedCache.rankingPoints); + let re = new RegExp('^[0-9]+$'); + let rps = String(this.computedCache.rankingPoints); return re.test(rps); }, validateEverything(){ diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationEdit.vue b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationEdit.vue index 1de5ced..d9a004d 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationEdit.vue +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationEdit.vue @@ -15,25 +15,32 @@

Location

- - + - - - + + + + - - - - + + + + + + + + + + + +
+ +
@@ -51,10 +58,11 @@