new Cesium.HomeButtonViewModel(scene, duration)

The view model for HomeButton.
Name Type Description
scene Scene 要使用的场景实例 .
duration number optional 相机飞行时间以秒计.

Members

command : Command

获取单击按钮时执行的命令.

duration : number|undefined

获取或设定相机飞行时间数秒. 值为0会导致相机立即切换到家视. 持续时间将根据未定义的距离计算.

scene : Scene

让场景控制.

tooltip : string

获取或设置工具提示。 这块地皮是可观察到的.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.