Class
JimuMapServiceLayerView
is the base class of JimuMapImageLayerView
and JimuTileLayerView
.
Properties
Property | Type | Notes |
---|---|---|
fromRuntime inherited | 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. |
id inherited | string | The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-" |
index inherited | number | The order defined in the webmap |
jimuMapViewId inherited | string | The jimuMapViewId is the corresponding JimuMapView instance id. |
MapImageLayer | TileLayer | The | |
layerDataSourceId inherited | string | The layerDataSourceId is the corresponding data source id. This id always has value, but the layer data source may not be created. |
type inherited | string | The layer type, see ArcGIS Maps SDK for JavaScript Layer type. |
view inherited | LayerView | BuildingComponentSublayerView | The |
fromRuntime
fromRuntime: 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.
id
id: string
The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-"
jimuMapViewId
jimuMapViewId: string
The jimuMapViewId is the corresponding JimuMapView instance id.
layer
Class Propertylayer: MapImageLayer | TileLayer
The layer
is the ArcGIS Maps SDK for JavaScript MapImageLayer
or TileLayer
.
layerDataSourceId
layerDataSourceId: string
The layerDataSourceId is the corresponding data source id. This id always has value, but the layer data source may not be created.
type
type: string
The layer type, see ArcGIS Maps SDK for JavaScript Layer type.
view
view: LayerView | BuildingComponentSublayerView
The 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() inherited | void | Destroy the JimuLayerView instance. |
getAllAncestorJimuLayerViews() inherited | Get all ancestor JimuLayerViews. | |
getJimuMapView() inherited | Get the JimuMapView that the current JimuLayerView belongs to. | |
getLayerDataSource() inherited | Return the corresponding data source of the layer. | |
getMapDataSource() inherited | Get the map data source of the layer. | |
getMapSceneView() inherited | MapView | SceneView | Return the MapView or SceneView of the layer view. |
getParentJimuLayerView() inherited | 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>
destroy
destroy(): void
Destroy the JimuLayerView instance.
Returns
void
getAllAncestorJimuLayerViews
getAllAncestorJimuLayerViews(): JimuLayerView[]
Get all ancestor JimuLayerViews.
Returns
JimuLayerView[]
getJimuMapView
getJimuMapView(): JimuMapView
Get the JimuMapView that the current JimuLayerView belongs to.
Returns
JimuMapView
getLayerDataSource
getLayerDataSource(): DataSource
Return the corresponding data source of the layer.
Returns
DataSource
getMapDataSource
getMapDataSource(): MapDataSource
Get the map data source of the layer.
Returns
MapDataSource
getMapSceneView
getMapSceneView(): MapView | SceneView
Return the MapView or SceneView of the layer view.
Returns
MapView | SceneView
getParentJimuLayerView
getParentJimuLayerView(): JimuLayerView
Get parent JimuLayerView.
Returns
JimuLayerView
isLayerVisible
isLayerVisible(): boolean
If any layer in the layer tree is invisible, the layer is considered invisible.
Returns
boolean