new Cesium.HomeButton(container, scene, duration)

返回当前场景默认相机视图的单个按钮部件 .
Name Type Description
container Element | string The DOM element or ID that will contain the widget.
scene Scene The Scene instance to use.
duration number optional 时间,几秒钟,它需要完成 相机飞行回家.

Members

container : Element

得到母容器.

viewModel : HomeButtonViewModel

获得观音模型.

Methods

destroy()

摧毁部件。 如果永久调用, 应该调用 从布局中删除部件 .

isDestroyed()boolean

Returns:
如果物体已被销毁, 则真实无误 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.