Search code examples
eventsgoogle-mapsgoogle-street-view

Google Street View API V3 - tiles loaded event?


Is there an event that fires when the Street View has finished loading all the tiles that make up a panorama? Currently if you change the position manually (StreetViewPanorama.setPosition) the transition is rough, and there is no way to tell when the new files have all loaded. As a result, it's not possible to display a loading GIF unless it's given an arbitrary timeout such as 2 or 3 seconds.

Any ideas?


Solution

  • You can see all available events for a panorama here: http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewPanorama

    Have you tried using the position_changed event?