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", {
|
||||
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());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue