Forum
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.
See the section "Using your own map display code" for how to add your own JavaScript using the Maps API.
https://docs.grabaperch.com/templates/field-types/map/
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!