JimuFeatureLayerView
Class
The JimuFeatureLayerView extends from the JimuLayerView.
Constructors
constructor
Class Constructornew JimuFeatureLayerView(options: JimuFeatureLayerViewOptions): JimuFeatureLayerView
Parameters
Parameter | Type |
---|---|
options | JimuFeatureLayerViewOptions |
Returns
JimuFeatureLayerView
Properties
Property | Type | Notes |
---|---|---|
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. | |
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)) | |
FeatureLayerView | The |
jimuMapViewId
jimuMapViewId: string
The jimuMapViewId is the corresponding JimuMapView instance id.
layer
layer: any
The layer is the corresponding layer object in ArcGIS JavaScript API View.map.
layerDataSourceId
layerDataSourceId: string
The layerDataSourceId is the corresponding datasource id.
type
type: 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: FeatureLayerView
The view
is the ArcGIS Maps SDK for JavaScript FeatureLayerView
.
If the layer is from mapservice, view = null
Methods
Method | Returns | Notes |
---|---|---|
destroy() | void | Destroy the JimuLayerView instance. |
Return the cooresponding data source of the layer | ||
MapView | SceneView | Return the MapView or SceneView of the layer view. | |
selectFeatureById(id, record?) | void | Select feature |
selectFeaturesByIds(ids, records?) | void | Select features by IDs. When select features by IDs, we can pass in the data source records. So when the selected records are not loaded in data source, we can add them in. |
destroy
destroy(): void
Destroy the JimuLayerView instance.
Returns
void
getLayerDataSource
Class MethodgetLayerDataSource(): FeatureLayerDataSource
Return the cooresponding data source of the layer
Returns
FeatureLayerDataSource
getMapSceneView
getMapSceneView(): MapView | SceneView
Return the MapView or SceneView of the layer view.
Returns
MapView | SceneView
selectFeatureById
Class MethodselectFeatureById(id: string, record?: FeatureDataRecord): void
Select feature
Parameters
Parameter | Type |
---|---|
id | string |
record | FeatureDataRecord |
Returns
void
selectFeaturesByIds
Class MethodselectFeaturesByIds(ids: string[], records?: FeatureDataRecord[]): void
Select features by IDs. When select features by IDs, we can pass in the data source records. So when the selected records are not loaded in data source, we can add them in.
Parameters
Parameter | Type |
---|---|
ids | string[] |
records | FeatureDataRecord[] |
Returns
void
id: string
The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-"