From b285a2fbb1a0d2834fb8b994717bb691b823d8d7 Mon Sep 17 00:00:00 2001 From: cronzon Date: Sat, 22 Sep 2018 22:03:47 +0000 Subject: [PATCH] Fixes _setLinestringMetrics. WIP: getArea won't work until it gets a polygon --- TWCC.iws | 181 +++++++++++++++++++--------------------- webapp/js/map.bundle.js | 122 ++++++++++++++------------- webapp/js/map.js | 14 ++-- 3 files changed, 157 insertions(+), 160 deletions(-) diff --git a/TWCC.iws b/TWCC.iws index a57856a..6435439 100644 --- a/TWCC.iws +++ b/TWCC.iws @@ -2,9 +2,18 @@ - + + + + + + + + + + @@ -16,15 +25,6 @@ - - - - - - - - - @@ -60,11 +60,11 @@ - + - - + + @@ -73,7 +73,6 @@ - @@ -96,11 +95,23 @@ + + + + + + + + + + + + - - + + @@ -112,10 +123,9 @@ - - + + - @@ -123,7 +133,6 @@ - @@ -152,11 +161,6 @@ - _createMarker - _setMarker - resetMarker - .clear - _clearVectorLayer _clearAzimuthsSource _clearMarkerSource _olMarkerVectorSource = @@ -169,7 +173,6 @@ _olLinestringModify = new Text placement - _olLinestringModify = stroke: new Stroke( console.log _olLinestringVectorSource @@ -179,9 +182,15 @@ _startPolylineEdit _olLinestringModify _olLinestringVectorSource. - map.rightclick _olMap = + map.rightclick + getCoordinates + metrics + _setPolylineMetrics polyline.editend + _setLinestringMetrics + _olLinestringVectorSource.getFeatures()[0] + _getArea $json @@ -202,7 +211,6 @@ @@ -288,6 +297,7 @@ + @@ -295,11 +305,6 @@ - - - - - @@ -311,19 +316,11 @@ - - - - - - -