问题描述
当街景视图已经完成加载构成全景图的所有图块时,是否会触发一个事件?目前,如果您手动更改位置( StreetViewPanorama.setPosition
),则转换很粗糙,无法确定新文件何时已加载。因此,无法显示加载GIF,除非它被给予任意超时,例如2或3秒。
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.
任何想法?
推荐答案
您可以在这里查看所有可用的全景活动:
You can see all available events for a panorama here: http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewPanorama
您是否尝试使用position_changed事件?
Have you tried using the position_changed event?
这篇关于Google Street View API V3 - 贴片事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!