Class
JimuOrientedImageryLayerView is the wrapper of OrientedImageryLayer .
It is used to synchronize state with OrientedImageryLayerDataSource .
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 | OrientedImageryLayer | 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 | SupportedLayerViewType | 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: OrientedImageryLayerThe layer is the ArcGIS Maps SDK for JavaScript OrientedImageryLayer .
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: SupportedLayerViewTypeThe view is the ArcGIS Maps SDK for JavaScript LayerView
or BuildingComponentSublayerView .
Methods
| Method | Returns | Notes |
|---|---|---|
destroy()inherited | void | Destroy the JimuLayerView instance. |
getAllAncestorJimuLayerViews()inherited | JimuLayerView[] | Get all ancestor JimuLayerViews. |
getJimuMapView()inherited | JimuMapView | Get the JimuMapView that the current JimuLayerView belongs to. |
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. |
getSelectedFeatures()inherited | Promise<Graphic[]> | Get selected features of current JimuLayerView. |
isLayerVisible()inherited | boolean | If any layer in the layer tree is invisible, the layer is considered invisible. |
selectFeatureById(id, record?)inherited | Promise<void> | When selecting a feature by ID, we can pass in the data source record so when the selected records are not loaded in data source, we can add them in. However, if the record is not loaded and is not passed in, there will be no selection. If we can get the layer data source, the record can be a FeatureDataRecord or a Graphic. Otherwise, the record can only be a Graphic. |
selectFeaturesByIds(ids, records?)inherited | Promise<void> | See |
selectFeaturesByQuery(query, selectionMode)inherited | Promise<IFeature | Graphic[]> | Select features from the layer. If the last select operation has not been completed, calling this method will automatically terminate the previous selection progress. |
setDefinitionExpression(localDefinitionExpression)inherited | void | Sets the definitionExpression on the layer and the view, but does not apply the definitionExpression to the data source. |
destroy
destroy(): voidDestroy the JimuLayerView instance.
Returns
voidgetAllAncestorJimuLayerViews
getAllAncestorJimuLayerViews(): JimuLayerView[]Get all ancestor JimuLayerViews.
Returns
JimuLayerView[]getJimuMapView
getJimuMapView(): JimuMapViewGet the JimuMapView that the current JimuLayerView belongs to.
Returns
JimuMapViewgetMapDataSource
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
JimuLayerViewgetSelectedFeatures
getSelectedFeatures(): Promise<Graphic[]>Get selected features of current JimuLayerView.
Returns
Promise<Graphic[]>isLayerVisible
isLayerVisible(): booleanIf any layer in the layer tree is invisible, the layer is considered invisible.
Returns
booleanselectFeatureById
selectFeatureById(id: number, record?: Graphic | FeatureDataRecord): Promise<void>When selecting a feature by ID, we can pass in the data source record so when the selected records are not loaded in data source, we can add them in. However, if the record is not loaded and is not passed in, there will be no selection. If we can get the layer data source, the record can be a FeatureDataRecord or a Graphic. Otherwise, the record can only be a Graphic.
Parameters
| Parameter | Type |
|---|---|
id | number |
record | Graphic | FeatureDataRecord |
Returns
Promise<void>selectFeaturesByIds
selectFeaturesByIds(ids: number[], records?: FeatureDataRecord[]): Promise<void>See selectFeatureById for more details.
Parameters
| Parameter | Type |
|---|---|
ids | number[] |
records | FeatureDataRecord[] |
Returns
Promise<void>selectFeaturesByQuery
selectFeaturesByQuery(query: ArcGISQueryParams, selectionMode: DataSourceSelectionMode): Promise<IFeature | Graphic[]>Select features from the layer. If the last select operation has not been completed, calling this method will automatically terminate the previous selection progress.
Parameters
| Parameter | Type | Notes |
|---|---|---|
query | ArcGISQueryParams | The query parameters. |
selection | DataSourceSelectionMode | This parameter is to indicate how the new select operation affects the original selection. It can only be the following enumeration values: |
Returns
Promise<IFeature | Graphic[]>setDefinitionExpression
setDefinitionExpression(localDefinitionExpression: string): voidSets the definitionExpression on the layer and the view, but does not apply the definitionExpression to the data source.
Parameters
| Parameter | Type |
|---|---|
local | string |
Returns
void