Disabled mousewheel scroll on map

This commit is contained in:
Tobias Schulmann 2018-06-30 11:46:31 +12:00 committed by Tobias S
parent 37a4c59a24
commit 00fc35492b

View file

@ -62,7 +62,10 @@ crossorigin=""></script>
{% block extra_body %}
<script>
var map = L.map('map').setView([-43.5235, 172.5839], 18);
var map = L.map('map',
{
scrollWheelZoom: false
}).setView([-43.5235, 172.5839], 18);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);