Google earth api javascript control

天涯浪子 提交于 2019-12-10 17:24:53

问题


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!


回答1:


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.

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

Is it possible to simulate key press events programmatically?



来源:https://stackoverflow.com/questions/8243204/google-earth-api-javascript-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!