AbstractMapConfigManager
geovisto-map / AbstractMapConfigManager
Class: abstract AbstractMapConfigManager
The class wraps config used by the map and functions to acquire config items.
Author
Jiri Hynek
Extended by
Constructors
new AbstractMapConfigManager()
new AbstractMapConfigManager(
config):AbstractMapConfigManager
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
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:20
Properties
config
privateconfig:IMapConfig
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:12
originalConfig
privateoriginalConfig:Record\<string,unknown>
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:11
Methods
export()
abstractexport(mapConfig):Record\<string,unknown>
It converts map config to the original structure.
Parameters
• mapConfig: IMapConfig
Returns
Record\<string, unknown>
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:37
getMapConfig()
getMapConfig():
IMapConfig
It returns the map config
Returns
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:49
getOriginalConfig()
getOriginalConfig():
Record\<string,unknown>
It returns the original config.
Returns
Record\<string, unknown>
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
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[]
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:56
import()
protectedabstractimport(config):IMapConfig
It converts given config to the internal map config structure.
Parameters
• config: Record\<string, unknown>
Returns
Source
model/internal/config/abstract/AbstractMapConfigManager.ts:30