Constructor
new FormFilterConfig(cfg)
Create a form filter config instance
Parameters:
Name | Type | Description |
---|---|---|
cfg |
object | the lizmap config object for form filter |
- Source:
Members
elementConfigs :Array.<FormFilterElementConfig>
The copy of element configs from config
Type:
- Array.<FormFilterElementConfig>
- Source:
layerIds :Array.<string>
The copy of layer ids from config
Type:
- Array.<string>
- Source:
Methods
(generator) getElementConfigs() → {FormFilterElementConfig}
Iterate through layer configs
- Source:
Yields:
The next edition layer config
- Type
- FormFilterElementConfig
getElementConfigsByLayerId(id) → {Array.<FormFilterElementConfig>}
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.<FormFilterElementConfig>
(generator) getLayerIds() → {string}
Iterate through layer ids
- Source:
Yields:
The next layer id
- Type
- string