Class: BaseObjectConfig

BaseObject.BaseObjectConfig(cfg, requiredPropertiesopt, optionalPropertiesopt)

Class representing a base object config

Constructor

new BaseObjectConfig(cfg, requiredPropertiesopt, optionalPropertiesopt)

The generic constructor to build an instance based on required and optional properties description The values of each properties defined in requiredProperties and optionalProperties will be converted to is type: boolean, number, extent ; and will be stored in an _{name} attribute This will help to get values respecting the type defined in getter and to validate the config
Parameters:
Name Type Attributes Description
cfg object the lizmap config object
requiredProperties object <optional>
the required properties definition
optionalProperties object <optional>
the optional properties definition
Source: