Methods
(static) buildLayersOrder(initialConfig, rootLayerTreeCfg) → {Array.<string>}
Function to build the layer names displaying order like in QGIS based on lizmap config
or the layer tree config based on WMS capabilities
The first one in this list is the top one in the map
The last one in this list is the bottom one in the map
Parameters:
Name | Type | Description |
---|---|---|
initialConfig |
object | the initial config object |
rootLayerTreeCfg |
LayerTreeGroupConfig | The root layer tree config based on WMS capabilities |
- Source:
Returns:
The layer names displaying order from top to bottom
- Type
- Array.<string>
(inner) layersOrderFromLayerTreeGroup(layerTreeGroupCfg) → {Array.<string>}
Recursive function to build the layer names displaying order like in QGIS based on the layer tree
config group from WMS capabilities
Parameters:
Name | Type | Description |
---|---|---|
layerTreeGroupCfg |
LayerTreeGroupConfig | The layer tree config based on WMS capabilities |
- Source:
Returns:
The layer names list from top to bottom
- Type
- Array.<string>