I create a site, and I have a page that takes an address and uses it to create a google map of a 2D roadmap, and then next to it, street view for that address.
My problem is that these two maps cover almost the entire width of the site, and the user will most likely scroll it, scrolling the page and getting confused because of the inability to scroll down (when zooming the map).
Turning this off for the 2D map was pretty solid.
//works to disable scroll wheel in 2D map var mapOptions = { zoom: 12, center: latlng, scrollwheel: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions ); //not working to disable scroll wheel in panorama var panoramaOptions = { position: results[0].geometry.location, scrollwheel: false }; panorama = new google.maps.StreetViewPanorama(document.getElementById("map_canvas2"), panoramaOptions );
but street view does not allow me to disable the scroll wheel using these options, and I can not find this problem, indicated in google docs. Does anyone know if this can be implemented or suggestions on how to approach it?
javascript google-maps google-street-view panoramas
Deviousblue
source share