HomeButton

new Cesium.HomeButton(container, scene, duration)

一个按钮小部件,用于返回当前场景的默认相机视图。
Name Type Description
container Element | string 将包含小部件的DOM元素或ID。
scene Scene 要使用的场景实例。
duration number optional 时间,以秒为单位,完成相机的飞行。

Members

获取父容器。
获取视图模型。

Methods

销毁小部件。如果从布局中永久删除小部件, 则应该调用。

isDestroyed()boolean

Returns:
如果对象已被销毁,则为true,否则为false。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.