diff app/view/panel/Map.js @ 1348:26e0aec2eb31

corrected created coordinates in Stammdaten view from EPSG 3857 to EPSG 4326
author Maximilian Krambach <mkrambach@intevation.de>
date Mon, 06 Feb 2017 16:47:16 +0100
parents cba4e0b0e336
children 5c2d6812d85a
line wrap: on
line diff
--- a/app/view/panel/Map.js	Mon Feb 06 12:33:00 2017 +0100
+++ b/app/view/panel/Map.js	Mon Feb 06 16:47:16 2017 +0100
@@ -133,6 +133,8 @@
 
     featureAdded: function(features) {
         this.locationRecord.set('kdaId', 4);
+        features.feature.geometry.transform(new OpenLayers.Projection('EPSG:3857'),
+                                            new OpenLayers.Projection('EPSG:4326'));
         this.locationRecord.set('koordYExtern', features.feature.geometry.y);
         this.locationRecord.set('koordXExtern', features.feature.geometry.x);
         this.drawPoint.deactivate();

http://lada.wald.intevation.org