Mercurial > lada > lada-client
diff app/view/panel/Map.js @ 1335:cba4e0b0e336
Fixed ort grid selection.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 17:02:55 +0100 |
parents | 152fca74a839 |
children | 26e0aec2eb31 |
line wrap: on
line diff
--- a/app/view/panel/Map.js Fri Feb 03 16:17:46 2017 +0100 +++ b/app/view/panel/Map.js Fri Feb 03 17:02:55 2017 +0100 @@ -97,6 +97,9 @@ return; } var feature = this.featureLayer.getFeaturesByAttribute('id', record.get('id'))[0]; + if (!feature) { + return; + } this.map.setCenter( new OpenLayers.LonLat(feature.geometry.x, feature.geometry.y)); this.map.zoomTo(12);