Class: LayerLayerState

LayerState.LayerLayerState(layerTreeItemCfg, layersOrder, parentMapGroupopt)

Class representing a layer: could be vector or raster layer

Constructor

new LayerLayerState(layerTreeItemCfg, layersOrder, parentMapGroupopt)

Creating a layer state

Parameters:
Name Type Attributes Description
layerTreeItemCfg LayerTreeItemConfig

the layer item config

layersOrder Array.<number>

the layers order

parentMapGroup LayerGroupState <optional>

the parent layer group

Source:

Extends

  • LayerItemState

Members

crs :string

The layer crs

Type:
  • string
Source:

extent :Extent

The layer extent

Type:
  • Extent
Source:

layerOrder :number

Layer type from top to bottom

Type:
  • number
Source:

layerType :string

Layer type

Type:
  • string
Source:

Layer popup activated

Type:
  • boolean
Source:

popupMaxFeatures :number

The layer popup max features

Type:
  • number
Source:

popupSource :string

The layer popup source

Type:
  • string
Source:

popupTemplate :string

The layer popup template

Type:
  • string
Source:

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

calculateVisibility() → {boolean}

Calculate and save visibility

Source:
Returns:

the calculated visibility

Type
boolean