# HG changeset patch # User Maximilian Krambach # Date 1486396036 -3600 # Node ID 26e0aec2eb3192eb9f68dd619a058cd9e3168bcf # Parent 2fc8e2b3c456502a810b70cefabb2c64bcb181c7 corrected created coordinates in Stammdaten view from EPSG 3857 to EPSG 4326 diff -r 2fc8e2b3c456 -r 26e0aec2eb31 app/view/panel/Map.js --- 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();