ToggleButtonViewModel

new Cesium.ToggleButtonViewModel(command, options)

一个视图模型,它公开切换按钮的属性。
Name Type Description
command Command 当按钮被切换时将执行的命令。
options object optional 对象,具有以下属性:
Name Type Default Description
toggled boolean false optional 一个布尔值,指示是否应该在初始时切换按钮。
tooltip string '' optional 包含按钮工具提示的字符串。

Members

获取按钮被切换时将执行的命令。
获取或设置按钮当前是否处于切换状态。这个属性是可观察的。
Default Value: false
获取或设置按钮的工具提示。这个属性是可观察的。
Default Value: ''
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.