Mercurial > lada > lada-client
changeset 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 | 2fc8e2b3c456 |
children | c05a5534f0d9 |
files | app/view/panel/Map.js |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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();