Google Street View API V3 - 图块加载事件?
当街景视图完成加载构成全景图的所有图块时,是否会触发一个事件?目前,如果您手动更改位置 (StreetViewPanorama.setPosition
),过渡会很粗糙,并且无法判断新文件何时全部加载。因此,除非指定任意超时(例如 2 或 3 秒),否则无法显示正在加载的 GIF。
有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处查看全景图的所有可用事件:http:// code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewPanorama
您尝试过使用position_changed 事件吗?
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?