comparison 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
comparison
equal deleted inserted replaced
1347:2fc8e2b3c456 1348:26e0aec2eb31
131 this.drawPoint.events.register('featureadded', this, this.featureAdded); 131 this.drawPoint.events.register('featureadded', this, this.featureAdded);
132 }, 132 },
133 133
134 featureAdded: function(features) { 134 featureAdded: function(features) {
135 this.locationRecord.set('kdaId', 4); 135 this.locationRecord.set('kdaId', 4);
136 features.feature.geometry.transform(new OpenLayers.Projection('EPSG:3857'),
137 new OpenLayers.Projection('EPSG:4326'));
136 this.locationRecord.set('koordYExtern', features.feature.geometry.y); 138 this.locationRecord.set('koordYExtern', features.feature.geometry.y);
137 this.locationRecord.set('koordXExtern', features.feature.geometry.x); 139 this.locationRecord.set('koordXExtern', features.feature.geometry.x);
138 this.drawPoint.deactivate(); 140 this.drawPoint.deactivate();
139 this.fireEvent('featureadded', this.locationRecord); 141 this.fireEvent('featureadded', this.locationRecord);
140 // this.selectControl.unselectAll(); 142 // this.selectControl.unselectAll();

http://lada.wald.intevation.org