diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/js/map-OpenLayers.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 97507ea4a..e7702e764 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -772,7 +772,10 @@ OpenLayers.Strategy.FixMyStreet = OpenLayers.Class(OpenLayers.Strategy.BBOX, { getMapBounds: function() { var bounds = OpenLayers.Strategy.BBOX.prototype.getMapBounds.apply(this); if (bounds) { - bounds = new OpenLayers.Bounds(bounds.toArray()); + // OpenLayers 2.11 (as used by Zürich) doesn't allow Bounds to be + // created by passing an array to the constructor, so we have to use + // this convenience method instead. + bounds = OpenLayers.Bounds.fromArray(bounds.toArray()); } return bounds; }, |