Constructor
new LayerTreeGroupConfig(name, level, items, wmsCapaLayer, layerCfgopt)
Create a layer tree group config instance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | the QGIS layer name | |
level |
number | the layer tree item level | |
items |
Array.<LayerTreeItemConfig> | the children layer tree items | |
wmsCapaLayer |
object | the WMS capabilities layer element | |
layerCfg |
LayerConfig |
<optional> |
the lizmap layer config |
- Source:
Extends
- LayerTreeItemConfig
Members
children :Array.<LayerTreeItemConfig>
Children items
Type:
- Array.<LayerTreeItemConfig>
- Source:
childrenCount :number
Children items count
Type:
- number
- Source:
Methods
findTreeLayerConfigNames() → {Array.<string>}
Find layer names
- Source:
Returns:
The layer names of all the tree layer
- Type
- Array.<string>
findTreeLayerConfigs() → {Array.<LayerTreeLayerConfig>}
Find layer items
- Source:
Returns:
All the tree layer layers config
- Type
- Array.<LayerTreeLayerConfig>
(generator) getChildren() → {LayerTreeItemConfig}
Iterate through children items
- Source:
Yields:
The next child item
- Type
- LayerTreeItemConfig