diff options
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index c653fe908..2cd93eb33 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -54,7 +54,7 @@ OpenLayers.Layer.VectorAsset = OpenLayers.Class(OpenLayers.Layer.Vector, { // This function is called when the asset category is // selected, and will zoom the map in to the first level that // makes the asset layer visible if it's not already shown. - if (!this.inRange) { + if (!this.inRange && this.resolutions) { var firstVisibleResolution = this.resolutions[0]; var zoomLevel = fixmystreet.map.getZoomForResolution(firstVisibleResolution); fixmystreet.map.zoomTo(zoomLevel); |