It's simple: create L.Map with scrollWheelZoom: false option, then add a listener: map.once('focus', function() { map.scrollWheelZoom.enable(); }); If you need to toggle zooming: map.on('click', function() { if (map.scrollWheelZoom.enabled()) { map.scrollWheelZoom.disable(); } else { map.scrollWheelZoom.enable(); } });


More of a comment/improvement on the toggle component of the accepted answer, which is great (thanks). But. When interacting with a map, for many use cases the user also needs to click the map to perform their task, so this: map.on('click', function() { if (map.scrollWheelZoom.enabled()) { map.scrollWheelZoom.disable(); } else { map....


In QGIS 2.14.7 LTR there is an option to completely disable zooming using the mouse wheel from Settings -> Options -> Map Tools -> Panning and Zooming, you need to change Mouse wheel action to Nothing as you can see below: However, the same option is not available in QGIS 2.16.3. But there is a new option called Magnification. When you lock the ...


Yes, I guess the mouse wheel action has become a default setting in QGIS 2.16.x. If you go to Settings > Options > Map Tools > Zoom factor, you will see the minimum value possible is 1.1. Makes sense since a factor of 1 for a given value will remain the same. So let's change the zoom factor to 1 using Python! Paste the following in the Python ...


There is no need to alter settings, you can change the zoom factor for the current QGIS session. For QGIS <= v2.18 (see Wheel actions enum): zoomFactor = 3 iface.mapCanvas().setWheelAction( 0, zoomFactor ) # Wheel action, Zoom factor For upcoming QGIS 3, there is a new method (wheel actions have been removed): zoomFactor = 3 iface.mapCanvas()....


Leaflet.Sleep will make your job easy, and it's plenty configurable Basically, it turns off scroll events when they're not needed and "wakes" your map when they are. I'd post code, but the defaults seem to get it right, so you likely won't need anything beyond <script src="path/to/leaflet-sleep.js"></script> and you'll have a map like this.


From the online help for Quick ways to navigate data frames and layouts: You can reverse the zoom in/zoom out convention used by the mouse wheel. Click Customize > ArcMap Options to open the ArcMap Options dialog box. Click the General tab and make your changes in the Mouse Wheel and Continuous Zoom/Pan Tool section.


No, it's not possible to change the direction. In Options, you can change the zoom speed and behavior (zoom to mouse cursor, zoom, etc.) but not the general direction.


When you use CartoDB Editor, you need to activate the option called Scroll wheel zoom. Then, you could use this feature in an Embed map (Share -> Embed it (or Get a simple URL). If you're using CartoDB.js , please verify that you don't have the option scrollwheel disabled when you're instantiating your map.


If you are looking for zoom functions, they are defined in the QgsMapCanvas Class. For example, in your case it could be used something like this: canvas = qgis.utils.iface.mapCanvas() canvas.zoomByFactor(1.1) If I run this code from the Python Console, it zooms the canvas by a factor of 1.1. Does it work for you?


First, as suggested in the original answer, you need to add an option to map when it's constructed: var map = L.map('map', {scrollWheelZoom: false}).setView([-15, -40], 5); Then add the listener immediately after this. So the whole thing becomes // CONSTRUCT THE MAP var map = L.map('map', {scrollWheelZoom: false}).setView([-15, -40], 5); map.once('focus',...


I think the correct spelling would be qgis rather than Qgis: from PyQt4.QtCore import QSettings QSettings().setValue("/qgis/zoom_factor", 1)


As far as I've been able to find, this is not possible in ArcGIS. I've tried every single solution that I could find and thought about trying to do some kind of overlay. Instead I opted to use openlayers 3 and implemented the solution below. Works perfectly. Outlined here: http://www.wikihow.com/Change-Advanced-Features-of-an-OpenLayers-3-Map map....


You can now change it with python in QGIS 3, unfortunately not in user interface yet (I am going to point out the issues with all this on QGIS github, meanwhile...) Open python console - Plugins/Python console (Ctrl+Alt+p), and write there just this one line: iface.mapCanvas().setWheelFactor(0.5) This will revert the zoom in/ zoom out behavior. It is kind ...

Only top voted, non community-wiki answers of a minimum length are eligible