comparison app/view/panel/Map.js @ 1379:e95ac7584c2c

Only displaying own messpunkte in ortszuordnung after creation of new messpunkt
author Maximilian Krambach <mkrambach@intevation.de>
date Tue, 14 Feb 2017 14:30:15 +0100
parents 9cac9eb1365f
children
comparison
equal deleted inserted replaced
1378:0b2d6db2be7e 1379:e95ac7584c2c
203 this.map.addControl(this.selectControl); 203 this.map.addControl(this.selectControl);
204 this.selectControl.activate(); 204 this.selectControl.activate();
205 } 205 }
206 this.featureLayer.removeAllFeatures(); 206 this.featureLayer.removeAllFeatures();
207 this.featureLayer.addFeatures(locationFeatures); 207 this.featureLayer.addFeatures(locationFeatures);
208 if (this.selectedFeatureLayer && this.selectedFeatureLayer.features){ 208 if (this.selectedFeatureLayer
209 && this.selectedFeatureLayer.features
210 && this.selectedFeatureLayer.features.length > 0){
209 var oldSelection = this.selectedFeatureLayer.features[0].data.id; 211 var oldSelection = this.selectedFeatureLayer.features[0].data.id;
210 var feature = this.featureLayer.getFeaturesByAttribute('id', oldSelection)[0]; 212 var feature = this.featureLayer.getFeaturesByAttribute('id', oldSelection)[0];
211 this.selectControl.unselectAll(); 213 this.selectControl.unselectAll();
212 this.selectedFeatureLayer.removeAllFeatures(); 214 this.selectedFeatureLayer.removeAllFeatures();
213 this.selectedFeatureLayer.addFeatures(feature.clone()); 215 this.selectedFeatureLayer.addFeatures(feature.clone());

http://lada.wald.intevation.org