Class: ThemesConfig

Theme.ThemesConfig(cfg)

Class representing themes config

Constructor

new ThemesConfig(cfg)

Create themes config instance
Parameters:
Name Type Description
cfg object the lizmap config object for layer
Source:

Members

themeConfigs :Array.<ThemeConfig>

The copy of theme configs from config
Type:
  • Array.<ThemeConfig>
Source:

themeNames :Array.<string>

The copy of the theme names from config
Type:
  • Array.<string>
Source:

Methods

getThemeConfigByThemeName(name) → {ThemeConfig}

Get a theme config by theme name
Parameters:
Name Type Description
name string the theme name
Source:
Throws:
The theme name is unknown or the config has been corrupted
Type
RangeError | Error
Returns:
The theme config associated to the name
Type
ThemeConfig

(generator) getThemeConfigs() → {ThemeConfig}

Iterate through theme configs
Source:
Yields:
The next theme config
Type
ThemeConfig

(generator) getThemeNames() → {string}

Iterate through theme names
Source:
Yields:
The next theme name
Type
string