JimuLayerView

Class

JimuLayerView is a wrapper class for ArcGIS Maps SDK for JavaScript LayerView. It is created by a JimuMapView using a layer DataSource.

Constructors

constructor

Class Constructor
new JimuLayerView(optionsJimuLayerViewConstructorOptions): JimuLayerView
Parameters
Returns 
JimuLayerView

Properties

PropertyTypeNotes
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))

LayerView

The view is the ArcGIS Maps SDK for JavaScript LayerView.

id

Class Property
id: string

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

index

Class Property
index: number

The order defined in the webmap

jimuMapViewId

Class Property
jimuMapViewId: string

The jimuMapViewId is the corresponding JimuMapView instance id.

layer

Class Property
layer: any

The layer is the corresponding layer object in ArcGIS JavaScript API View.map.

layerDataSourceId

Class Property
layerDataSourceId: string

The layerDataSourceId is the corresponding datasource id.

view

Class Property
view: LayerView

The view is the ArcGIS Maps SDK for JavaScript LayerView.

Methods

MethodReturnsNotes
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

destroy

Class Method
destroy(): void

Destroy the JimuLayerView instance.

Returns 
void

getLayerDataSource

Class Method
getLayerDataSource(): DataSource

Return the cooresponding data source of the layer

Returns 
DataSource

getMapSceneView

Class Method
getMapSceneView(): MapView | SceneView

Return the MapView or SceneView of the layer view.

Returns 
MapView | SceneView

selectFeatureById

Class Method
selectFeatureById(idstring): void

Select feature

Parameters
ParameterType
id
string
Returns 
void

selectFeaturesByIds

Class Method
selectFeaturesByIds(idsstring[]): void

Select features

Parameters
ParameterType
ids
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.