Prevent map zooming with mouse wheel.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 2 Jan 2021 11:04:38 +0000 (12:04 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Sat, 2 Jan 2021 11:04:38 +0000 (12:04 +0100)
wrmap.js

index ab45a89f1e3d745f99a2ce9a0232ff872a3c8bb1..de22a914f40af854c7ba39410dcf582fa1056079 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -351,6 +351,9 @@ function init_wrmap(i, jq_map) {
                        attributionOptions: {
                                collapsible: false
                        }
                        attributionOptions: {
                                collapsible: false
                        }
+               }),
+               interactions: ol.interaction.defaults({
+                       mouseWheelZoom: false
                })
        });
 
                })
        });