[Lada-commits] [PATCH] Set values from which the server actually generates a geometry

Wald Commits scm-commit at wald.intevation.org
Thu Dec 8 16:14:04 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1481209001 -3600
# Node ID 26197c2d936230f3f8af46e7f2a57899cc6ec766
# Parent  52ecf67e9e80f32f2f404ed09cb071f42c074fa4
Set values from which the server actually generates a geometry.

diff -r 52ecf67e9e80 -r 26197c2d9362 app/view/panel/Map.js
--- 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();


More information about the Lada-commits mailing list