diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 17:18:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 17:18:34 +0100 |
commit | 9d8ad13ed231671f2ece5d81c5ce928807d0ba5f (patch) | |
tree | 6a6467cf2039abefb0fb98ad29b715221e79fd03 /web/js | |
parent | 6a2734fb46c9edebe6d455c4ab1984065cc64485 (diff) | |
parent | d2c9d3f4dbdff822f90a4934d858dabec2c85e17 (diff) |
Merge branch 'zurich-upgrade-openlayers'
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/map-OpenLayers.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 9e02c8ea9..dc65f750d 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -701,14 +701,6 @@ OpenLayers.Control.PanZoomFMS = OpenLayers.Class(OpenLayers.Control.PanZoom, { btn.action = id; btn.className = "olButton"; this.div.appendChild(btn); - if (OpenLayers.VERSION_NUMBER.indexOf('2.11') > -1) { - btn.map = this.map; - OpenLayers.Event.observe(btn, "mousedown", OpenLayers.Function.bindAsEventListener(this.buttonDown, btn)); - var slideFactorPixels = this.slideFactor; - btn.getSlideFactor = function() { - return slideFactorPixels; - }; - } this.buttons.push(btn); return btn; }, @@ -776,10 +768,7 @@ OpenLayers.Strategy.FixMyStreet = OpenLayers.Class(OpenLayers.Strategy.BBOX, { getMapBounds: function() { var bounds = OpenLayers.Strategy.BBOX.prototype.getMapBounds.apply(this); if (bounds) { - // 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()); + bounds = new OpenLayers.Bounds(bounds.toArray()); } return bounds; }, |