JimuBuildingComponentSublayerView

Class

JimuBuildingComponentSublayerView is the wrapper of BuildingComponentSublayer and BuildingComponentSublayerView . It is used to synchronize state with BuildingComponentSubLayerDataSource .

Inheritance: JimuBuildingComponentSublayerViewJimuQueriableLayerView

Properties

Hide inherited properties
PropertyTypeNotes
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.

BuildingComponentSublayer

The layer is the ArcGIS Maps SDK for JavaScript BuildingComponentSublayer .

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.

BuildingComponentSublayerView

The view is the ArcGIS Maps SDK for JavaScript BuildingComponentSublayerView .

fromRuntime

inheritedinherited
Class Property
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

inheritedinherited
Class Property
id: string

The id of the JimuLayerView instance. It connects the JimuMapView.id and the JimuLayerId with "-"

index

inheritedinherited
Class Property
index: number

The order defined in the webmap

jimuMapViewId

inheritedinherited
Class Property
jimuMapViewId: string

The jimuMapViewId is the corresponding JimuMapView instance id.

layer

Class Property
layer: BuildingComponentSublayer

The layer is the ArcGIS Maps SDK for JavaScript BuildingComponentSublayer .

layerDataSourceId

inheritedinherited
Class Property
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

inheritedinherited
Class Property
type: string

The layer type, see ArcGIS Maps SDK for JavaScript Layer type.

view

Class Property
view: BuildingComponentSublayerView

The view is the ArcGIS Maps SDK for JavaScript BuildingComponentSublayerView .

Methods

Hide inherited methods
MethodReturnsNotes
destroy()
inherited
void

Destroy the JimuLayerView instance.

Get all ancestor JimuLayerViews.

getJimuMapView()
inherited

Get the JimuMapView that the current JimuLayerView belongs to.

getMapDataSource()
inherited

Get the map data source of the layer.

getMapSceneView()
inherited
MapView | SceneView

Return the MapView or SceneView of the layer view.

Get parent JimuLayerView.

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 selectFeatureById for more details.

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

inheritedinherited
Class Method
destroy(): void

Destroy the JimuLayerView instance.

Returns 
void

getAllAncestorJimuLayerViews

inheritedinherited
Class Method
getAllAncestorJimuLayerViews(): JimuLayerView[]

Get all ancestor JimuLayerViews.

Returns 
JimuLayerView[]

getJimuMapView

inheritedinherited
Class Method
getJimuMapView(): JimuMapView

Get the JimuMapView that the current JimuLayerView belongs to.

Returns 
JimuMapView

getMapDataSource

inheritedinherited
Class Method
getMapDataSource(): MapDataSource

Get the map data source of the layer.

Returns 
MapDataSource

getMapSceneView

inheritedinherited
Class Method
getMapSceneView(): MapView | SceneView

Return the MapView or SceneView of the layer view.

Returns 
MapView | SceneView

getParentJimuLayerView

inheritedinherited
Class Method
getParentJimuLayerView(): JimuLayerView

Get parent JimuLayerView.

Returns 
JimuLayerView

getSelectedFeatures

inheritedinherited
Class Method
getSelectedFeatures(): Promise<Graphic[]>

Get selected features of current JimuLayerView.

Returns 
Promise<Graphic[]>

isLayerVisible

inheritedinherited
Class Method
isLayerVisible(): boolean

If any layer in the layer tree is invisible, the layer is considered invisible.

Returns 
boolean

selectFeatureById

inheritedinherited
Class Method
selectFeatureById(idnumber, record?FeatureDataRecord | Graphic): 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
ParameterType
id
number
record
FeatureDataRecord | Graphic
Returns 
Promise<void>

selectFeaturesByIds

inheritedinherited
Class Method
selectFeaturesByIds(idsnumber[], records?FeatureDataRecord[]): Promise<void>

See selectFeatureById for more details.

Parameters
ParameterType
ids
number[]
records
FeatureDataRecord[]
Returns 
Promise<void>

selectFeaturesByQuery

inheritedinherited
Class Method
selectFeaturesByQuery(queryArcGISQueryParams, selectionModeDataSourceSelectionMode): 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
ParameterTypeNotes
query
ArcGISQueryParams

The query parameters.

selectionMode
DataSourceSelectionMode

This parameter is to indicate how the new select operation affects the original selection. It can only be the following enumeration values: New , AddToCurrent , RemoveFromCurrent , or SelectFromCurrent .

Returns 
Promise<IFeature | Graphic[]>

setDefinitionExpression

inheritedinherited
Class Method
setDefinitionExpression(localDefinitionExpressionstring): void

Sets the definitionExpression on the layer and the view, but does not apply the definitionExpression to the data source.

Parameters
ParameterType
localDefinitionExpression
string
Returns 
void

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.