Module: LayerTree

Classes

LayerBoundingBoxConfig
LayerGeographicBoundingBoxConfig
LayerStyleConfig
LayerTreeGroupConfig
LayerTreeItemConfig
LayerTreeLayerConfig

Methods

(static) buildLayerTreeConfig(wmsCapaLayerRoot, layersCfg, invalid) → {LayerTreeGroupConfig}

Function to build the root layer tree config based on WMS capabilities
Parameters:
Name Type Description
wmsCapaLayerRoot object the WMS root layer capabilities
layersCfg LayersConfig the lizmap layers config instance
invalid Array.<string> List of invalid WMS layer name
Source:
Returns:
- The root layer tree config based on WMS capabilities
Type
LayerTreeGroupConfig

(inner) buildLayerTreeGroupConfigItems(wmsCapaLayerGroup, layersCfg, level, invalid) → {Array.<LayerTreeItemConfig>}

Function to build layer tree items config based on WMS capabilities
Parameters:
Name Type Description
wmsCapaLayerGroup object the WMS layer capabilities
layersCfg LayersConfig the lizmap layers config instance
level number the WMS layer level
invalid Array.<string> List of invalid WMS layer name
Source:
Returns:
- The layer tree items of the WMS layer
Type
Array.<LayerTreeItemConfig>