JimuFeatureLayerView
Class
The JimuFeatureLayerView extends from the JimuLayerView.
Constructors
new JimuFeatureLayerView(options: JimuFeatureLayerViewOptions): JimuFeatureLayerView
Parameters
Parameter | Type |
---|---|
options | JimuFeatureLayerViewOptions |
Returns
JimuFeatureLayerView
Properties
Property | Type | Notes |
---|---|---|
string | The id of the JimuLayerView instance. | |
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 API 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 API for JavaScript Layer type]((https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type))
view
view: FeatureLayerView
The view
is the ArcGIS API for JavaScript FeatureLayerView
.
If the layer is from mapservice, view = null
Methods
Method | Returns | Notes |
---|---|---|
| void | Destroy the JimuLayerView instance. |
| Return the cooresponding data source of the layer | |
| MapView | SceneView | Return the MapView or SceneView of the layer view. |
| void | Select feature |
| 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
getLayerDataSource(): 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
selectFeatureById(id: string, record?: FeatureDataRecord): void
Select feature
Parameters
Parameter | Type |
---|---|
id | string |
record | FeatureDataRecord |
Returns
void
selectFeaturesByIds
selectFeaturesByIds(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.