changeset 1263:26197c2d9362

Set values from which the server actually generates a geometry.
author Tom Gottfried <tom@intevation.de>
date Thu, 08 Dec 2016 15:56:41 +0100
parents 52ecf67e9e80
children a4c1a9862a88
files app/view/panel/Map.js
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/panel/Map.js	Tue Dec 06 14:03:57 2016 +0100
+++ b/app/view/panel/Map.js	Thu Dec 08 15:56:41 2016 +0100
@@ -109,8 +109,9 @@
     },
 
     featureAdded: function(features) {
-        this.locationRecord.set('latitude', features.feature.geometry.y);
-        this.locationRecord.set('longitude', features.feature.geometry.x);
+        this.locationRecord.set('kdaId', 4);
+        this.locationRecord.set('koordYExtern', features.feature.geometry.y);
+        this.locationRecord.set('koordXExtern', features.feature.geometry.x);
         this.drawPoint.deactivate();
         this.fireEvent('featureadded', this.locationRecord);
     //    this.selectControl.unselectAll();

http://lada.wald.intevation.org