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-wmts-zurich.js | |
parent | 7f135798a6523ba7e7e0125007550abc9cc6916c (diff) |
Allow scroll wheel to zoom map.
Diffstat (limited to 'web/js/map-wmts-zurich.js')
-rw-r--r-- | web/js/map-wmts-zurich.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/web/js/map-wmts-zurich.js b/web/js/map-wmts-zurich.js index 4c386e87d..9e0555079 100644 --- a/web/js/map-wmts-zurich.js +++ b/web/js/map-wmts-zurich.js @@ -56,15 +56,9 @@ $(function(){ function set_map_config(perm) { // This stuff is copied from js/map-bing-ol.js - 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.ArgParser(), - fixmystreet.nav_control + new OpenLayers.Control.Navigation() ]; if ( fixmystreet.page != 'report' || !$('html').hasClass('mobile') ) { fixmystreet.controls.push( new OpenLayers.Control.PanZoomFMS({id: 'fms_pan_zoom' }) ); |