Daniel Daniel - 2 months ago 21
Javascript Question

Turn-off Google Maps MouseWheel Zoom Ctrl

I've got update with Google.Maps API3 library. Every time I try to zoom-in or zoom-out map it is notification appear that zoom control available with pressed Ctrl/Cmd Button only.
Opac overlay with Ctrl only info

It is something new and I've no idea how to turn it off as it was before - zoom without additional buttons press.

Answer Source

Add gestureHandling: 'greedy' to your map options during instantiation.

E.g:

var map = newgoogle.maps.Map(document.getElementById('map'), {
        center: {0, 0},
        zoom: 8,
        gestureHandling: 'greedy'
    });
}