Thread tagged as: Question

Disabling scrolling on map?

Does anyone know how to disable the scroll wheel on the maps so the page can be scrolled without the map interrupting that?

There are options on the google maps api to do this, but I don't know how to transfer this to the perch map object.

Chris George

Chris George 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

See the section "Using your own map display code" for how to add your own JavaScript using the Maps API.

I have to admit, I looked at that, found the script then wondered if anyone had already done it! :-)

But then I stopped being lazy and had another look.

my public_maps.js now includes

opts = { zoom: parseInt(data.zoom,10), center: latlng, scrollwheel: false, gestureHandling: "none" };

And this works!