MapConfigManager
geovisto-map / MapConfigManager
Class: MapConfigManager
The class wraps config used by the map and functions to acquire config items.
Author
Jiri Hynek
Extends
Implements
Constructors
new MapConfigManager()
new MapConfigManager(
config):MapConfigManager
It initializes the config wrapper providing a basic API. It expects a config represented by the implicict Geovisto map structure.
Parameters
• config: Record\<string, unknown>
Returns
Overrides
AbstractMapConfigManager.constructor
Source
model/internal/config/basic/MapConfigManager.ts:18
Methods
export()
export(
mapConfig):Record\<string,unknown>
It returns map config of the implicit structure.
Parameters
• mapConfig: IMapConfig
Returns
Record\<string, unknown>
Implementation of
Overrides
AbstractMapConfigManager.export
Source
model/internal/config/basic/MapConfigManager.ts:39
getMapConfig()
getMapConfig():
IMapConfig
It returns the map config
Returns
Implementation of
IMapConfigManager.getMapConfig
Inherited from
AbstractMapConfigManager.getMapConfig
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:49
getOriginalConfig()
getOriginalConfig():
Record\<string,unknown>
It returns the original config.
Returns
Record\<string, unknown>
Implementation of
IMapConfigManager.getOriginalConfig
Inherited from
AbstractMapConfigManager.getOriginalConfig
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:42
getToolConfig()
getToolConfig(
toolId):undefined|IMapToolConfig
It returns the config record for the tool identified by the given tool identifier.
Parameters
• toolId: string
Returns
undefined | IMapToolConfig
Implementation of
IMapConfigManager.getToolConfig
Inherited from
AbstractMapConfigManager.getToolConfig
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:65
getToolsConfigs()
getToolsConfigs():
undefined|IMapToolConfig[]
It returns the list of all config records for the tools.
Returns
undefined | IMapToolConfig[]
Implementation of
IMapConfigManager.getToolsConfigs
Inherited from
AbstractMapConfigManager.getToolsConfigs
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:56
import()
protectedimport(config):IMapConfig
It converts given config to the internal map config structure. It keeps the config structure.
Parameters
• config: Record\<string, unknown>
Returns
Overrides
AbstractMapConfigManager.import