Module: LayerTree

Classes

LayerBoundingBoxConfig
LayerGeographicBoundingBoxConfig
LayerStyleConfig
LayerTreeGroupConfig
LayerTreeItemConfig
LayerTreeLayerConfig

Methods

(static) buildLayerTreeConfig(wmsCapaLayerRoot, layersCfg) → {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
Source:
Returns:
The root layer tree config based on WMS capabilities
Type
LayerTreeGroupConfig

(inner) buildLayerTreeGroupConfigItems(wmsCapaLayerGroup, layersCfg, level) → {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
Source:
Returns:
the layer tree items of the wms layer
Type
Array.<LayerTreeItemConfig>