Google Street View API V3 - tiles loaded event?

三世轮回 提交于 2019-12-22 10:32:25

问题


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?


回答1:


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?



来源:https://stackoverflow.com/questions/4150891/google-street-view-api-v3-tiles-loaded-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!