From 877234e378e64c982e52146078deeadfa2a9eefb Mon Sep 17 00:00:00 2001 From: rohit645 Date: Thu, 13 Feb 2020 01:32:09 +0530 Subject: [PATCH] Mouse scroll to Zoom in/out in map view --- app/common/services/maps.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/common/services/maps.js b/app/common/services/maps.js index f86f137439..b3acbf54cc 100644 --- a/app/common/services/maps.js +++ b/app/common/services/maps.js @@ -49,6 +49,7 @@ function Maps(ConfigEndpoint, L, _, CONST) { map.attributionControl.setPrefix(false); map.zoomControl.setPosition('bottomleft'); map.setMaxBounds([[-90,-360],[90,360]]); + map.scrollWheelZoom.enable(); map.on('popupopen', function (e) { var px = map.project(e.popup._latlng); // find the pixel location on the map where the popup anchor is px.y -= e.popup._container.clientHeight / 2; // find the height of the popup container, divide by 2, subtract from the Y axis of marker location