麻辣GIS微信平台

更多 GIS 干货

微信关注不错过

Cesium API - Command 中文文档

本文介绍下Cesium中 Command API的详细使用说明。

Command API 调用方法

new Cesium.Command()
A Command is a function with an extra canExecute observable property to determine whether the command can be executed. When executed, a Command function will check the value of canExecute and throw if false. This type describes an interface and is not intended to be instantiated directly. See createCommand to create a command from a function.

成员变量

afterExecute : Event
Gets an event which is raised after the command executes, the event is raised with the return value of the command as its only parameter.
Default Value: undefined
beforeExecute : Event
Gets an event which is raised before the command executes, the event is raised with an object containing two properties: a cancel property, which if set to false by the listener will prevent the command from being executed, and an args property, which is the array of arguments being passed to the command.
Default Value: undefined
canExecute : Boolean
Gets whether this command can currently be executed. This property is observable.
Default Value: undefined

其他API

Cesium中文API文档手册(v1.63.1版本)参考:《Cesium中文API文档手册(v1.63.1版本)

相关阅读

麻辣GIS-Sailor

作者:

GIS爱好者,学GIS,更爱玩GIS。

声明

1.本文所分享的所有需要用户下载使用的内容(包括但不限于软件、数据、图片)来自于网络或者麻辣GIS粉丝自行分享,版权归该下载资源的合法拥有者所有,如有侵权请第一时间联系本站删除。

2.下载内容仅限个人学习使用,请切勿用作商用等其他用途,否则后果自负。

手机阅读
公众号关注
知识星球
手机阅读
麻辣GIS微信公众号关注
最新GIS干货
关注麻辣GIS知识星球
私享圈子

留言板(小编看到第一时间回复)