How can I disable keyboard shortcut zooming in Google Street View?
According to the JavaScript API, setting keyboardShortcuts: false
for google.maps.MapOptions
should prevent any control via the keyboard, but
zooming still works using the +
and -
keyboard shortcuts.
var map = new google.maps.Map(document.getElementById('map'), {
center: fenway,
zoom: 14,
keyboardShortcuts: false /* should prevent +/- zooming */
});
Here is an example fiddle.
Edit: as geocodezip points out, keyboardShortcuts
is only an option for the overhead map. google.maps.StreetViewPanoramaOptions
doesn't have these options. Could the keyboard shortcuts be turned off manually by disabling the events?