Mercurial > lada > lada-client
comparison app/view/window/Ortszuordnung.js @ 1371:fae5757bd56c
Enabled initial display of ortinfo for Ortzuordnungwindow (Messprogramm)
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Thu, 09 Feb 2017 10:17:36 +0100 |
parents | 1a2cd9bef6d7 |
children | f2db1da82297 |
comparison
equal
deleted
inserted
replaced
1370:102c6b9e0a05 | 1371:fae5757bd56c |
---|---|
266 }), | 266 }), |
267 displayInLayerSwitcher: false, | 267 displayInLayerSwitcher: false, |
268 projection: new OpenLayers.Projection('EPSG:3857') | 268 projection: new OpenLayers.Projection('EPSG:3857') |
269 }); | 269 }); |
270 map.map.addLayer(map.selectedFeatureLayer); | 270 map.map.addLayer(map.selectedFeatureLayer); |
271 var ortId; | 271 var ortId = this.record.get('ortId'); |
272 if (this.messprogramm) { | |
273 ortId = this.record.get('ort'); | |
274 } else { | |
275 ortId = this.record.get('ortId'); | |
276 } | |
277 if (ortId){ | 272 if (ortId){ |
278 var feat = map.featureLayer.getFeaturesByAttribute('id', ortId); | 273 var feat = map.featureLayer.getFeaturesByAttribute('id', ortId); |
279 var ortrecord = this.ortstore.findRecord('id', ortId); | 274 var ortrecord = this.ortstore.findRecord('id', ortId); |
280 osg.selectOrt(map, feat); | 275 osg.selectOrt(map, feat); |
281 map.selectFeature(this.model, ortrecord); | 276 map.selectFeature(this.model, ortrecord); |