When users visit my website on mobile, they encounter a situation where Google Maps suddenly covers the entire page, preventing them from scrolling away. This is because swiping up or down only moves the map view within Google Maps, instead of scrolling the webpage itself.
In the past, I used the following solution for mobile:
var mapOptions = {
draggable: false,
panControl: true,
}
This essentially disabled swipe events on Google Maps so that users could scroll the webpage by swiping. If users wanted to pan the map, they could use the pan button provided in the user interface.
However, starting from version 3.22, Google Maps API has removed the pan control button (see official google doc). This poses a challenge for me as there is no other way to pan the map if "draggable" is disabled.
How can I allow users to scroll the webpage using swipe gestures while still giving them the option to pan the map if desired?