Class
JimuLayerView
is a wrapper class for ArcGIS Maps SDK for JavaScript LayerView
.
It is created by a JimuMapView
using a layer DataSource
.
A layer view may have a related data source. If it has the data source, the feature selection will be synced to data source selection and will use the data source URL params. If it does not have the data source, the feature selection will use the feature_selection URL param.
Properties
Property | Type | Notes |
---|---|---|
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. | |
string | The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-" | |
number | The order defined in the webmap | |
string | The jimuMapViewId is the corresponding JimuMapView instance id. | |
any | The layer is the corresponding layer object in ArcGIS JavaScript API View.map. | |
string | The layerDataSourceId is the corresponding datasource id. This id always has value, but the layer data source may not be created. | |
string | The layer type, see [ArcGIS Maps SDK for JavaScript Layer type]]((https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type)) | |
LayerView | BuildingComponentSublayerView | The |
fromRuntime
Class PropertyfromRuntime: 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
Class Propertyid: string
The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-"
jimuMapViewId
Class PropertyjimuMapViewId: string
The jimuMapViewId is the corresponding JimuMapView instance id.
layer
Class Propertylayer: any
The layer is the corresponding layer object in ArcGIS JavaScript API View.map.
layerDataSourceId
Class PropertylayerDataSourceId: string
The layerDataSourceId is the corresponding datasource id. This id always has value, but the layer data source may not be created.
type
Class Propertytype: string
The layer type, see [ArcGIS Maps SDK for JavaScript Layer type]]((https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type))
view
Class Propertyview: LayerView | BuildingComponentSublayerView
The view
is the ArcGIS Maps SDK for JavaScript LayerView
.
Methods
Method | Returns | Notes |
---|---|---|
destroy() | void | Destroy the JimuLayerView instance. |
Get all ancestor JimuLayerViews. | ||
Return the cooresponding data source of the layer | ||
MapView | SceneView | Return the MapView or SceneView of the layer view. | |
Get parent JimuLayerView. | ||
boolean | If any layer in the layer tree is invisible, the layer is considered invisible |
getAllAncestorJimuLayerViews
Class MethodgetAllAncestorJimuLayerViews(): JimuLayerView[]
Get all ancestor JimuLayerViews.
Returns
JimuLayerView[]
getLayerDataSource
Class MethodgetLayerDataSource(): DataSource
Return the cooresponding data source of the layer
Returns
DataSource
getMapSceneView
Class MethodgetMapSceneView(): MapView | SceneView
Return the MapView or SceneView of the layer view.
Returns
MapView | SceneView
getParentJimuLayerView
Class MethodgetParentJimuLayerView(): JimuLayerView
Get parent JimuLayerView.
Returns
JimuLayerView