new LayerControl(viewer, options)
图层控件
Parameters:
| Name | Type | Description |
|---|---|---|
viewer |
Viewer | 视图实例 |
options |
Object | 配置参数 |
Members
-
container :Element
-
Gets the parent container.
Type:
- Element
-
viewModel :LayerControlViewModel
-
Gets the view model.
Type:
- LayerControlViewModel
Methods
-
destroy()
-
Destroys the widget. Should be called if permanently removing the widget from layout.
-
hide()
-
隐藏控件
-
isDestroyed()
-
判断是否销毁
Returns:
true if the object has been destroyed, false otherwise.- Type
- Boolean
-
show()
-
显示控件