Class
JimuGroupLayerView is the wrapper of GroupLayer .
Properties
| Property | Type | Notes |
|---|---|---|
fromRuntimeinherited | boolean | true means the JimuLayerView is created from runtime. e.g. The JimuLayerView is created by AddData widget at runtime. false means the layer is a builtin layer of WebMap or WebScene. |
idinherited | string | The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-" |
indexinherited | number | The order defined in the webmap |
jimuMapViewIdinherited | string | The jimuMapViewId is the corresponding JimuMapView instance id. |
layer | GroupLayer | The |
layerDataSourceIdinherited | string | The layerDataSourceId is the corresponding data source id. This id always has value, but the layer data source may not be created. |
typeinherited | string | The layer type, see ArcGIS Maps SDK for JavaScript Layer type. |
viewinherited | BuildingComponentSublayerView | LayerView | The |
fromRuntime
fromRuntime: booleantrue means the JimuLayerView is created from runtime. e.g. The JimuLayerView is created by AddData widget at runtime. false means the layer is a builtin layer of WebMap or WebScene.
id
id: stringThe id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-"
jimuMapViewId
jimuMapViewId: stringThe jimuMapViewId is the corresponding JimuMapView instance id.
layer
Class Propertylayer: GroupLayerThe layer is the ArcGIS Maps SDK for JavaScript GroupLayer .
layerDataSourceId
layerDataSourceId: stringThe layerDataSourceId is the corresponding data source id. This id always has value, but the layer data source may not be created.
type
type: stringThe layer type, see ArcGIS Maps SDK for JavaScript Layer type.
view
view: BuildingComponentSublayerView | LayerViewThe view is the ArcGIS Maps SDK for JavaScript LayerView
or BuildingComponentSublayerView .
Methods
| Method | Returns | Notes |
|---|---|---|
createLayerDataSource()inherited | Promise<DataSource> | Create corresponding data source for the layer. |
destroy() | void | Destroy the JimuLayerView instance. |
getAllAncestorJimuLayerViews()inherited | JimuLayerView[] | Get all ancestor JimuLayerViews. |
getJimuMapView()inherited | JimuMapView | Get the JimuMapView that the current JimuLayerView belongs to. |
getLayerDataSource()inherited | DataSource | Return the corresponding data source of the layer. |
getMapDataSource()inherited | MapDataSource | Get the map data source of the layer. |
getMapSceneView()inherited | MapView | SceneView | Return the MapView or SceneView of the layer view. |
getParentJimuLayerView()inherited | JimuLayerView | Get parent JimuLayerView. |
isLayerVisible()inherited | boolean | If any layer in the layer tree is invisible, the layer is considered invisible. |
createLayerDataSource
createLayerDataSource(): Promise<DataSource>Create corresponding data source for the layer.
Returns
Promise<DataSource>getAllAncestorJimuLayerViews
getAllAncestorJimuLayerViews(): JimuLayerView[]Get all ancestor JimuLayerViews.
Returns
JimuLayerView[]getJimuMapView
getJimuMapView(): JimuMapViewGet the JimuMapView that the current JimuLayerView belongs to.
Returns
JimuMapViewgetLayerDataSource
getLayerDataSource(): DataSourceReturn the corresponding data source of the layer.
Returns
DataSourcegetMapDataSource
getMapDataSource(): MapDataSourceGet the map data source of the layer.
Returns
MapDataSourcegetMapSceneView
getMapSceneView(): MapView | SceneViewReturn the MapView or SceneView of the layer view.
Returns
MapView | SceneViewgetParentJimuLayerView
getParentJimuLayerView(): JimuLayerViewGet parent JimuLayerView.
Returns
JimuLayerViewisLayerVisible
isLayerVisible(): booleanIf any layer in the layer tree is invisible, the layer is considered invisible.
Returns
boolean