Disable scrollwheel zoom on map

This commit is contained in:
Mathieu Magnin 2017-02-01 10:31:32 +01:00
parent 11a7a64bd8
commit 9266cf0feb

View file

@ -11,7 +11,8 @@ function initCarto() {
map = L.map("map", {
center: new L.LatLng(position.lat, position.lon),
zoom: position.zoom,
layers: [OSM]
layers: [OSM],
scrollWheelZoom: false
});
icon = L.icon({
@ -159,4 +160,4 @@ function add_event_search_address() {
if (e.keyCode == 13)
get_address_point($(this).val());
});
}
}