如何在 Google Earth 中重置相机高度
我想将相机位置重置为更高的位置或更小的变焦。
我正在查看这里的代码:
http:// /earth-api-samples.googlecode.com/svn/trunk/demos/drive-simulator/index.html
我认为应该使用 DS_simulator 对象来完成,但我无法找出如何完成。
任何帮助表示赞赏。
I want to reset the camera position to a much higher position or lesser zoom.
I am looking at the code here:
http://earth-api-samples.googlecode.com/svn/trunk/demos/drive-simulator/index.html
I think it should be done using DS_simulator object, but am not able to find out how.
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
Camera
或LookAt
来实现此目的。放大和缩小由LookAt
的range
属性和Camera
的altitude
属性控制。以下是使用
lookat
设置范围
的快速示例。有关使用这两个对象控制视图的更多信息,请参阅本文档。
https://developers.google.com/earth/documentation/camera_control
此外,您还可以在这里玩一个工作示例。
http://code.google.com/apis/ajax/playground/ ?exp=earth#move_camera
You can use the
Camera
orLookAt
to achieve this. Zooming in and out is controlled by therange
attribute for aLookAt
, and thealtitude
attribute for aCamera
.Here is a quick example of setting the
range
using alookat
.See this document for more information on controling the view using these two objects.
https://developers.google.com/earth/documentation/camera_control
Also, you can play with a working example here.
http://code.google.com/apis/ajax/playground/?exp=earth#move_camera