开发者

Google Street View API V3 - tiles loaded event?

开发者 https://www.devze.com 2023-01-24 06:17 出处:网络
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.setPosi

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?


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消