new Cesium.ToggleButtonViewModel(command, options)

显示切换按钮属性的视图模式 .
Name Type Description
command Command 切换按钮时执行的命令 .
options object optional 下列属性的对象 :
Name Type Default Description
toggled boolean false optional A boolean indicating whether the button should be initially toggled.
tooltip string '' optional

Members

command : Command

获取切换按钮时执行的命令 .

toggled : boolean

获取或设定当前是否切换按钮 。 这块地皮是可观察到的.
Default Value: false

tooltip : string

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