This function can be used to restrict pan/zoom events unless the user is
holding down a modifier key (Control, Alt, Command, Shift) on their keyboard.
This prevents accidental map interactions in pages with lots of scrolling
content.
Pass this to shouldMapPanZoom in createMap if you would like the user
to use two fingers or hold down a modifier key in order to zoom the map.
This function can be used to restrict pan/zoom events unless the user is holding down a modifier key (Control, Alt, Command, Shift) on their keyboard. This prevents accidental map interactions in pages with lots of scrolling content.
Pass this to
shouldMapPanZoom
in createMap if you would like the user to use two fingers or hold down a modifier key in order to zoom the map.