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 2218874..4a5889a 100644
--- a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Overview.vue
+++ b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/Overview.vue
@@ -116,7 +116,7 @@
data-projection="EPSG:4326" :style="{ height: mapHeight+'px' }">
-
+
@@ -128,6 +128,56 @@
+
+
+
+
+
+
+
+
+
+
@@ -161,6 +211,7 @@
import Vue from 'vue'
import VueLayers from 'vuelayers'
import 'vuelayers/lib/style.css' // needs css-loader
+import { createProj, addProj, findPointOnSurface, createStyle, createMultiPointGeom, loadingBBox } from 'vuelayers/lib/ol-ext'
Vue.use(VueLayers);
@@ -178,6 +229,7 @@ Vue.use(VueLayers);
geolocPosition: undefined,
mapHeight: 0,
mapmarker: "",
+ selectedFeatures: []
}
},
mounted: function () {
@@ -197,6 +249,13 @@ Vue.use(VueLayers);
},
methods: {
+ pointOnSurface: findPointOnSurface,
+ getPopupOffset() {
+ //let width = document.getElementById('popup').clientWidth;
+ let width = window.innerWidth * 0.7;
+ console.log(width);
+ return [-width/2,15];
+ },
matchHeight() {
// console.log("matchHeight");
const heightWindow = window.innerHeight;