Class: LayerGroupState

LayerState.LayerGroupState(layerTreeGroupCfg, layersOrder, hideGroupCheckbox, parentMapGroupopt)

Class representing a layer item: could be vector or raster layer

Constructor

new LayerGroupState(layerTreeGroupCfg, layersOrder, hideGroupCheckbox, parentMapGroupopt)

Creating a layer group state

Parameters:
Name Type Attributes Description
layerTreeGroupCfg LayerTreeGroupConfig

the layer item config

layersOrder Array.<number>

the layers order

hideGroupCheckbox boolean

the option instance from lizMap configuration

parentMapGroup LayerGroupState <optional>

the hideGroupCheckbox option instance from lizMap configuration

Source:

Extends

  • LayerItemState

Members

children :Array.<LayerItemState>

Children items

Type:
  • Array.<LayerItemState>
Source:

childrenCount :number

Children items count

Type:
  • number
Source:

groupAsLayer :boolean

The group will be displayed as layer

Type:
  • boolean
Source:

layerOrder :number

Layer type from top to bottom

Type:
  • number
Source:

mapType :string

Item map type

Type:
  • string
Source:

mutuallyExclusive :boolean

The group is mutually exclusive

Type:
  • boolean
Source:

(nullable) wmsGeographicBoundingBox :LayerGeographicBoundingBoxConfig

WMS layer Geographic Bounding Box

Type:
  • LayerGeographicBoundingBoxConfig
Source:

Methods

findGroups() → {Array.<LayerGroupState>}

Find group items

Source:
Returns:

The group states of all groups

Type
Array.<LayerGroupState>

findLayerNames() → {Array.<string>}

Find layer names

Source:
Returns:

The layer names of all layers

Type
Array.<string>

findLayers() → {Array.<LayerLayerState>}

Find layer items

Source:
Returns:

The layer states of all layers

Type
Array.<LayerLayerState>

(generator) getChildren() → {LayerItemState}

Iterate through children items

Source:
Yields:
The next child item
Type
LayerItemState