diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Overview.vue b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Overview.vue index a5e36d1..9568362 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Overview.vue +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Overview.vue @@ -168,7 +168,6 @@ Vue.use(VueLayers); tab: 'list', caches: [], stations: [], - features: [], render: false, renderMarker: false, zoom: 15, diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationView.vue b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationView.vue index 8a7e6e6..487d6bd 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationView.vue +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationView.vue @@ -2,19 +2,29 @@
- + - - - + + + + + + + + + + +

{{ cache.name }}

@@ -47,6 +57,7 @@ Vue.use(VueLayers); stationen: [], }, station: {}, + markercolor: "red", cameraActive: false, result: null, zoom: 15, @@ -109,6 +120,11 @@ Vue.use(VueLayers); }) }, + getMarkerURL(station) { + console.log(station); + return `./statics/map-marker_${this.markercolor}.svg` + }, + updateResult(event) { console.log("updateResult()"); console.log(event); diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_green.svg b/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_green.svg new file mode 100644 index 0000000..ff9e53b --- /dev/null +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_green.svg @@ -0,0 +1 @@ + diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_grey.svg b/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_grey.svg new file mode 100644 index 0000000..f090f9a --- /dev/null +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_grey.svg @@ -0,0 +1 @@ + diff --git a/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker.svg b/labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_red.svg similarity index 100% rename from labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker.svg rename to labswp_2019_sose_geocaching_frontend/frontend/src/statics/map-marker_red.svg