My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2557: Feature Request: Disable Zoom in Street View
11 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  [email protected]
Closed:  Nov 2010


Sign in to add a comment
 
Reported by josh%[email protected], Jul 7, 2010
The zoom controls can currently be hidden, but you cant disable zoom via doubleclick or scroll wheel.

Please allow an option to disable zoom completely (or at least unless called directly via javascript, not user interaction)
Jul 9, 2010
#1 [email protected]
(No comment was entered for this change.)
Aug 5, 2010
#2 [email protected]
It will be better to disable also "scroll wheel" only. 
like "scrollwheel = false" on map.
Oct 3, 2010
#3 fmalina
In Chrome, this works (with jQuery). FireFox seems to ignore me whatever I say.

$('#streetview canvas').bind('mousewheel', function(){
    return false;
});
Oct 6, 2010
Project Member #4 [email protected]
(No comment was entered for this change.)
Status: Confirmed
Labels: -Type-Enhancement Type-Defect Internal-3070581
Oct 6, 2010
Project Member #5 [email protected]
 Issue 2471  has been merged into this issue.
Nov 15, 2010
Project Member #6 [email protected]
(No comment was entered for this change.)
Status: Fixed
Labels: Fixed-3.3
Nov 18, 2010
#7 fmalina
How do I start test this using 3.3? Is there a query string for version?
I have scrollwheel: false in my panoramaOptions but streetview still catches the scrollweel. I assume this is fixed but not live yet in http://maps.google.com/maps/api/js?sensor=false
Jan 5, 2011
#8 [email protected]
I use the below jquery-javascript code to work around double click zoom in my panorama - pretty sure it could be adapted to scroll wheel zoom. zoom: 1 being my prefered zoom stage here, but could be anything.

$("#panorama").dblclick( function(){

panorama.setPov(  { heading: panorama.getPov().heading, pitch: panorama.getPov().pitch, zoom: 1 }  );

});
Jan 5, 2011
#9 fmalina
Not really johannes, it is catching the scroll event that is not implemented in web browsers consistently. One browser's mousewheel is another's DOMMouseScroll. I could use your code to disable zoom altogether. 
I went trough the maps implementation. However once the code went trough closure compiler, it is no fun reading.

Anyway, this issue seems to have been fixed to an extend that "scrolwheel: false" would make sure zoom is no longer triggered on mere scroll. However the mouse is still caught, which is inconsistent with the maps implementation.

Good test case could be actually my page http://www.flatmaterooms.co.uk/room-to-let/london-princes-av. There you can see both: the map and the streetview as you scroll down. Both of them have "scrolwheel: false". However only the streetview would still catch your mouse as you scroll over.


Sign in to add a comment

Powered by Google Project Hosting