javascript - Can ScrollWheel be disabled in a custom street view? -


I am creating a site and I have a page that takes an address and uses it 2D Roadmap style google-map and after that, street view for that address.

My problem is that these two maps are spread across the entire width of the site and the user is likely to go to the mouse while scrolling and get confused with his inability to scroll down and scroll down. (While zooming in a map)

Disabling it for 2D maps was very compatible

// To disable the scroll wheel in 2D map, map var map = {zoom: 12 , Center: latlng, scrollwheel: wrong, mapTypeId: google.maps.MapTypeId.ROADMAP}; Map = new google.maps.Map (document.getElementById ("map_canvas"), map options); // Panorama Ver is not working to disable the scroll wheel in panorama = {status: result [0] .geometry.location, scrollwheel: false}; Panorama = New google.maps.StreetViewPanorama (document.getElementById ("map_canvas2"), Panorama options);

But Street View does not allow me to disable the scroll wheel by using these options and I'm unable to address this issue in Google Docs. Anyone can know how it can be done or how to reach it?

I have the same problem, when the user scrolls through the mouse scroll, the cursor is Google Street Is caught in the scene and starts zooming instead of scrolling the page. In Google Maps they provide scrollable properties which can disable it, but unfortunately it does not apply to Street View.

The only solution I found as now is @ Benedict said in the last reply, I had placed a blank / transparent div in the street scene.

When the user takes the user out of the mouse, then I am enabling controls when users use the GUT to hide the Street View area by using this empty divis (using CSS Visiting Property) But clicks anywhere. It is basically putting the empty backend basically this means that every time a user wants to talk with Street View control, he has to click once. This is not the best solution, but better than holding your mouse while scrolling


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -