Disable scrollwheel zoom on map
This commit is contained in:
parent
11a7a64bd8
commit
9266cf0feb
1 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,8 @@ function initCarto() {
|
||||||
map = L.map("map", {
|
map = L.map("map", {
|
||||||
center: new L.LatLng(position.lat, position.lon),
|
center: new L.LatLng(position.lat, position.lon),
|
||||||
zoom: position.zoom,
|
zoom: position.zoom,
|
||||||
layers: [OSM]
|
layers: [OSM],
|
||||||
|
scrollWheelZoom: false
|
||||||
});
|
});
|
||||||
|
|
||||||
icon = L.icon({
|
icon = L.icon({
|
||||||
|
|
Loading…
Add table
Reference in a new issue