diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2016-04-04 16:34:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-01 12:46:06 +0100 |
commit | f87d065b307e4b952071836788d1acfc79fd63c6 (patch) | |
tree | bdace2e49654573029137a6766c11e664029dc35 /web/js/map-bing-ol.js | |
parent | 7f135798a6523ba7e7e0125007550abc9cc6916c (diff) |
Allow scroll wheel to zoom map.
Diffstat (limited to 'web/js/map-bing-ol.js')
-rw-r--r-- | web/js/map-bing-ol.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/web/js/map-bing-ol.js b/web/js/map-bing-ol.js index 9b0a73fb8..5e29daea1 100644 --- a/web/js/map-bing-ol.js +++ b/web/js/map-bing-ol.js @@ -4,16 +4,10 @@ function _set_map_config() { permalink_id = 'map_permalink'; } - var nav_opts = { zoomWheelEnabled: false }; - if (fixmystreet.page == 'around' && $('html').hasClass('mobile')) { - nav_opts = {}; - } - fixmystreet.nav_control = new OpenLayers.Control.Navigation(nav_opts); - fixmystreet.controls = [ new OpenLayers.Control.Attribution(), new OpenLayers.Control.ArgParser(), - fixmystreet.nav_control, + new OpenLayers.Control.Navigation(), new OpenLayers.Control.PermalinkFMS(permalink_id), new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' }) ]; |