Class: LayerTreeGroupState

LayerTreeState.LayerTreeGroupState(mapGroupState, parentGroupStateopt)

Class representing a layer tree group

Constructor

new LayerTreeGroupState(mapGroupState, parentGroupStateopt)

Instantiate a layer tree group

Parameters:
Name Type Attributes Description
mapGroupState MapGroupState

the map layer group state

parentGroupState LayerTreeGroupState <optional>

the parent layer tree group

Source:

Extends

  • LayerTreeItemState

Members

children :Array.<LayerTreeItemState>

Children items

Type:
  • Array.<LayerTreeItemState>
Source:

childrenCount :number

Children items count

Type:
  • number
Source:

mutuallyExclusive :boolean

The layer mutually exclusive activation (group only)

Type:
  • boolean
Source:

Methods

findTreeLayerNames() → {Array.<string>}

Find layer names

Source:
Returns:

List of layer names

Type
Array.<string>

findTreeLayers() → {Array.<LayerTreeLayerState>}

Find layer items

Source:
Returns:

List of tree layers (not tree groups)

Type
Array.<LayerTreeLayerState>

findTreeLayersAndGroups() → {Array.<LayerTreeLayerState>}

Find layer and group items

Source:
Returns:

List of tree layers and tree groups

Type
Array.<LayerTreeLayerState>

(generator) getChildren() → {LayerTreeItemState}

Iterate through children items

Source:
Yields:
The next child item
Type
LayerTreeItemState

getTreeLayerByName(name) → {LayerTreeLayerState}

Get tree layer item by its name

Parameters:
Name Type Description
name string

the layer name

Source:
Returns:

The LayerTreeLayerState associated to the name

Type
LayerTreeLayerState

propagateCheckedState(val) → {boolean}

Propagate throught tree item the new checked state

Parameters:
Name Type Description
val boolean

The new checked state

Source:
Returns:

the new checked state

Type
boolean