My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4875: Bug: API crashes with custom streetview panorama and pitch -90
9 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Jun 2013


Sign in to add a comment
 
Reported by [email protected], Jan 30, 2013
Notes:
The Google Maps API v3 crashes when displaying a custom streetview panorama and the user looks straight down (pitch = -90).
Tested with IE 10 and Chrome 24 (FF works since default render mode is 'html4', but if 'html5' is forced the same problem occurs)


Javascript Error:
Uncaught TypeError: Cannot read property 'Yc' of undefined


Steps to reproduce:
1. Goto https://google-developers.appspot.com/maps/documentation/javascript/examples/streetview-custom-simple
2. Change POV to look straight down (pitch = -90)
Apr 3, 2013
#2 [email protected]
I was able to work around this issue with an event listener for pov_changed events on the StreetViewPanorama object. The listener checks the pitch angle, and if it is less than some limit (like -80), then it sets the pitch to that limit via panorama.setPov(limitedPov).

Here's a snippet:

var minPanoramaPitchAngle = -80; //something above -90

var panorama = map.getStreetView();
google.maps.event.addListener(panorama, 'pov_changed', onPovChange);

function onPovChange() {
  var pov = panorama.getPov();
  if (pov.pitch < minPanoramaPitchAngle) {
    pov.pitch = minPanoramaPitchAngle;
    panorama.setPov(pov);
  }
}
Jun 19, 2013
#3 [email protected]
Are you still seeing this error? I'm not seeing the problem in the html5 render mode in Chrome 29 (dev channel).
Status: NeedsMoreInfo
Jun 19, 2013
#4 [email protected]
I checked all current browsers and it seems to be fixed! Thanks!
Jun 20, 2013
#5 [email protected]
Yes, somewhat odd. I remember running into this exact same bug in v3 maybe 3 years ago, but it was fixed at the time. Hopefully this was just a temporary regression! Thanks for the report and the double checking.
Status: Fixed
Sign in to add a comment

Powered by Google Project Hosting