HomeButtonViewModel

new Cesium.HomeButtonViewModel(scene, duration)

The view model for HomeButton.
参数名称 类型 描述信息
scene Scene The scene instance to use.
duration number 可选 The duration of the camera flight in seconds.

成员(属性)

Gets the Command that is executed when the button is clicked.
Gets or sets the the duration of the camera flight in seconds. A value of zero causes the camera to instantly switch to home view. The duration will be computed based on the distance when undefined.
Gets the scene to control.
Gets or sets the tooltip. This property is observable.