Class: LayerTreeLayerState

LayerTreeState.LayerTreeLayerState(mapLayerState, parentGroupStateopt)

Class representing a layer tree layer

Constructor

new LayerTreeLayerState(mapLayerState, parentGroupStateopt)

Instantiate a layer tree layer

Parameters:
Name Type Attributes Description
mapLayerState MapLayerState

the map layer state

parentGroupState LayerTreeGroupState <optional>

the parent layer tree group

Source:

Extends

  • LayerTreeItemState

Members

hasSelectedFeatures :boolean

Vector layer has selected features The selected features is not empty

Type:
  • boolean
Source:

icon :string

The source icon of the layer

Type:
  • string
Source:

isFiltered :boolean

Vector layer is filtered The expression filter is not null

Type:
  • boolean
Source:

loadStatus :string

The layer load status

Type:
  • string
Source:
See:
  • MapLayerLoadStatus

singleWMSLayer :boolean

vector layer is loaded in a single layer ImageLayer or not

Type:
  • boolean
Source:

(nullable) symbology :LayerIconSymbology|LayerSymbolsSymbology|LayerGroupSymbology

Layer symbology

Type:
  • LayerIconSymbology | LayerSymbolsSymbology | LayerGroupSymbology
Source:

symbology

Update layer symbology

Source:

symbologyChildren :Array.<SymbolIconSymbology>|Array.<(BaseIconSymbology|BaseSymbolsSymbology)>

Children symbology

Type:
  • Array.<SymbolIconSymbology> | Array.<(BaseIconSymbology|BaseSymbolsSymbology)>
Source:

symbologyChildrenCount :number

Children symbology count

Type:
  • number
Source:

(nullable) wmsAttribution :AttributionConfig

WMS layer attribution

Type:
  • AttributionConfig
Source:

wmsParameters :object

Parameters for OGC WMS Request

Type:
  • object
Source:

wmsSelectedStyleName :string

WMS selected layer style name

Type:
  • string
Source:

wmsSelectedStyleName

Update WMS selected layer style name based on wmsStyles list

Source:

wmsStyles :Array.<LayerStyleConfig>

WMS layer styles

Type:
  • Array.<LayerStyleConfig>
Source:

Methods

(generator) getSymbologyChildren() → {SymbolIconSymbology|BaseIconSymbology|BaseSymbolsSymbology}

Iterate through children nodes

Source:
Yields:
The next child node
Type
SymbolIconSymbology | BaseIconSymbology | BaseSymbolsSymbology