Hinweis: Ein Cache muss mindestens aus zwei Stationen bestehen (inklusive der Endstation).
+Hinweis: Ein Cache muss mindestens aus zwei Stationen bestehen (inklusive der Endstation). +
Endstation
Neue Station
-Location
-{{ 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/router/routes.js b/labswp_2019_sose_geocaching_frontend/frontend/src/router/routes.js index 8586b23..35e002d 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/src/router/routes.js +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/router/routes.js @@ -63,7 +63,7 @@ const routes = [ { path: "/endstation/", component: () => import("layouts/MyLayout.vue"), - children: [{ path: "", component: () => import("pages/StationEndEdit.vue") }], + children: [{ path: "", component: () => import("pages/StationEdit.vue") }], meta: { public: false, // Allow access to even if not logged in onlyWhenLoggedOut: false, @@ -83,7 +83,7 @@ const routes = [ { path: "/tempendstation/", component: () => import("layouts/MyLayout.vue"), - children: [{path: "", component: () => import("pages/StationEndEdit.vue")}], + children: [{path: "", component: () => import("pages/StationEdit.vue")}], meta: { public: false, // Allow access to even if not logged in onlyWhenLoggedOut: false, 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