From ed3b23cf2240981c2f2ce368d3a5cc080a7d64ab Mon Sep 17 00:00:00 2001 From: Timo Volkmann Date: Mon, 24 Jun 2019 13:59:52 +0200 Subject: [PATCH 1/2] fixed invisible editor --- .../frontend/src/pages/StationEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 51e0e0e..c797474 100644 --- a/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationEdit.vue +++ b/labswp_2019_sose_geocaching_frontend/frontend/src/pages/StationEdit.vue @@ -3,7 +3,7 @@

{{ isEndstation ? "Endstation bearbeiten" : isNewStation ? "Neue Station" : "Station bearbeiten"}}

- - -
@@ -215,6 +215,13 @@ setCenter(position) { this.center = position; this.$emit('updatecoords', this.center); + }, + setCoordInput(val) { + this.inputCenter0 = val[0]; + this.inputCenter1 = val[1]; + }, + updateCenterValues() { + this.setCenter([this.inputCenter0, this.inputCenter1]) } } @@ -229,7 +236,9 @@ }, data() { return { - center: [9.208858198755664, 49.14785422283188], + inputCenter0: 9.208858198755664, + inputCenter1: 49.14785422283188, + //center: [9.208858198755664, 49.14785422283188], zoom: 15, rotation: 0, clickCoordinate: undefined, @@ -295,6 +304,34 @@ this.$emit('updatecoords', this.center); } }, + // center0: { + // get() { + // console.log("center0 get") + // + // return this.center[0]; + // }, + // set(val) { + // console.log("center0 set") + // let center1 = this.center[1]; + // let center0 = val; + // this.center = [center0, center1]; + // console.log(this.center) + // } + // }, + center: { + get() { + console.log("center get"); + console.log("center get"); + return [this.inputCenter0, this.inputCenter1]; + }, + set(val) { + console.log("center set"); + this.inputCenter0 = val[0]; + this.inputCenter1 = val[1]; + console.log(this.inputCenter0) + console.log(this.inputCenter1) + } + }, } }