Optional
app: AppOptional
options: InputModuleOptionsOptional
_appProtected
_destroyedReadonly
instanceStatic
moduleWhether it has been destroyed.
Indicates whether the component is enabled.
移除监听.
Event name
Optional
fn: FunctionFunction, If is undefined, delete all corresponding event listeners.
增加监听
Event name
Function
This
只监听一次.
Event name
Function
This
设置地图右键上下文菜单,运行时将触发 上下文菜单将要打开contextMenuPreOpen
, 上下文菜单已打开contextMenuOpened
, 上下文菜单打开无内容contextMenuNoContent
事件
Optional
menu: ((event, object?) => ContextMenu)获取菜单的函数
Optional
object: InteractiveObjectOptional
key: string多次调用setMenu时,同样的key会覆盖之前的事件函数;有多个key时,调用次序为key的字母次序倒序;多次调用时,直到函数返回一个非null的ContextMenu为止
EntityBase.