Class: DatavizLayersConfig

Dataviz.DatavizLayersConfig(cfg)

Class representing a dataviz layer config

Constructor

new DatavizLayersConfig(cfg)

Create a dataviz layers config instance
Parameters:
Name Type Description
cfg object the lizmap config object for layer
Source:

Members

elementConfigs :Array.<DatavizElementConfig>

The copy of element configs from config
Type:
  • Array.<DatavizElementConfig>
Source:

layerIds :Array.<string>

The copy of layer ids from config
Type:
  • Array.<string>
Source:

Methods

(generator) getElementConfigs() → {DatavizElementConfig}

Iterate through layer configs
Source:
Yields:
The next edition layer config
Type
DatavizElementConfig

getElementConfigsByLayerId(id) → {Array.<DatavizElementConfig>}

Get element configs by layer id
Parameters:
Name Type Description
id string the layer id
Source:
Throws:
The layer name is unknown or the config has been corrupted
Type
RangeError | Error
Returns:
The element configs associated to the layer id
Type
Array.<DatavizElementConfig>

(generator) getLayerIds() → {string}

Iterate through layer ids
Source:
Yields:
The next layer id
Type
string