new configSwitcher(options)
addons/configSwitcher/view.js, line 9
View for configSwitcher Addon
Name | Type | Description |
---|---|---|
options |
Object | Initial options to create model |
Extends
Methods
-
changeLang(lng){Void}
addons/configSwitcher/model.js, line 476 -
change language - sets default values for the language
Name Type Description lng
String the language changed to -
closeGFI(){void}
addons/configSwitcher/model.js, line 424 -
Closes the Geographic Feature Information (GFI) window, caches GFI markers, and sets new markers on the map.
-
iterateConfigs(configObject){Array}
addons/configSwitcher/model.js, line 384 -
Recursively iterates through a configuration object and extracts sub-configurations with "file" and "title" properties, creating a one-dimensional list of sub-configurations.
Name Type Description configObject
Object The configuration object to iterate. Returns:
A one-dimensional list of sub-configurations with "file" and "title" properties.
-
setClassicTree(value){void}
addons/configSwitcher/model.js, line 38 -
Neue Konfiguration wird aus ausgewählter Datei eingelesen
Name Type Description value
string Configuration path -
setClassicTreeObjToArray(obj, prefix)
addons/configSwitcher/model.js, line 353 -
Flatten the classic tree object and push layer and folder objects into their respective arrays.
Name Type Description obj
Object Classic tree object to be flattened. prefix
string Prefix for nested properties. -
setTreeComponent(val, valbool){void}
addons/configSwitcher/model.js, line 328 -
Sets attributes of a tree component.
Name Type Description val
string ID of the tree component. valbool
boolean Boolean value indicating visibility and selectability. -
setTreeComponentObj(val, treeComp){Promise.<void>}
addons/configSwitcher/model.js, line 271 -
Sets attributes of a tree component identified by the provided ID based on the provided object.
Name Type Description val
string The ID of the tree component. treeComp
Object The object containing attributes to set for the tree component. Returns:
A promise resolving when all attribute changes are completed.
-
showConfigFolders(folderItems){void}
addons/configSwitcher/model.js, line 230 -
Processes and displays configured folders.
Name Type Description folderItems
Array Array of folder items to be processed. -
showConfigLayers(layers){void}
addons/configSwitcher/model.js, line 148 -
Shows layers on the map based on the provided configuration.
Name Type Description layers
Array An array of layer objects.