Google Street View API V3 - 贴片事件? [英] Google Street View API V3 - tiles loaded event?

查看:177
本文介绍了Google Street View API V3 - 贴片事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当街景视图已经完成加载构成全景图的所有图块时,是否会触发一个事件?目前,如果您手动更改位置( 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.

任何想法?

推荐答案

您可以在这里查看所有可用的全景活动: http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewPanorama

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 - 贴片事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆