Skip to content

Commit 083403a

Browse files
authored
Merge pull request #1433 from rohit645/mouse_scroll_zoom
Mouse scroll to Zoom in/out in map view
2 parents 81f8b9e + 8f52c07 commit 083403a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/common/services/maps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ function Maps(ConfigEndpoint, L, _, CONST) {
4949
map.attributionControl.setPrefix(false);
5050
map.zoomControl.setPosition('bottomleft');
5151
map.setMaxBounds([[-90,-360],[90,360]]);
52+
map.scrollWheelZoom.enable();
5253
map.on('popupopen', function (e) {
5354
var px = map.project(e.popup._latlng); // find the pixel location on the map where the popup anchor is
5455
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

0 commit comments

Comments
 (0)