Google earth api javascript控件 [英] Google earth api javascript control

查看:325
本文介绍了Google earth api javascript控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTML文件,其中的相机从空间飞到街景,我只需要前进,随机指向下一个街景并继续移动。就像按住向上箭头一样。有谁知道怎么做?非常感谢!

I have an HTML file in which the camera flies from space to a street view and I only need to move forward, in a random direction to the next streetview and keep moving. Just like keeping the up arrow pressed. Does anyone know how to do it, please? Thank you very much!

推荐答案

我不认为这是可能的,Google Earth API(迄今为止)不公开任何控制街景模式的方法,除了启用/禁用之外。所有的动作都是通过用户输入,而不是通过程序控制。

I don't think this is possible, the Google Earth Api (to date) does not expose any methods to control the street-view mode other that enabling/disabling. All movement is via user input rather than programmatic control.

也就是说,通过使用类似jQuery的按键来模拟按键可能是可能的。

That said, it may just be possible to kludge this by simulating key presses using something like jQuery.

是否有可能以编程方式模拟按键事件?

这篇关于Google earth api javascript控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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