comparison app/view/panel/Map.js @ 1263:26197c2d9362

Set values from which the server actually generates a geometry.
author Tom Gottfried <tom@intevation.de>
date Thu, 08 Dec 2016 15:56:41 +0100
parents e4952906634d
children a792eecf1614
comparison
equal deleted inserted replaced
1262:52ecf67e9e80 1263:26197c2d9362
107 this.drawPoint.activate(); 107 this.drawPoint.activate();
108 this.drawPoint.events.register('featureadded', this, this.featureAdded); 108 this.drawPoint.events.register('featureadded', this, this.featureAdded);
109 }, 109 },
110 110
111 featureAdded: function(features) { 111 featureAdded: function(features) {
112 this.locationRecord.set('latitude', features.feature.geometry.y); 112 this.locationRecord.set('kdaId', 4);
113 this.locationRecord.set('longitude', features.feature.geometry.x); 113 this.locationRecord.set('koordYExtern', features.feature.geometry.y);
114 this.locationRecord.set('koordXExtern', features.feature.geometry.x);
114 this.drawPoint.deactivate(); 115 this.drawPoint.deactivate();
115 this.fireEvent('featureadded', this.locationRecord); 116 this.fireEvent('featureadded', this.locationRecord);
116 // this.selectControl.unselectAll(); 117 // this.selectControl.unselectAll();
117 // this.selectControl.select(features.feature); 118 // this.selectControl.select(features.feature);
118 }, 119 },

http://lada.wald.intevation.org