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 509 -
change language - sets default values for the language
Name Type Description lngString the language changed to -
closeGFI(){void}
addons/configSwitcher/model.js, line 457 -
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 417 -
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 configObjectObject 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 39 -
Neue Konfiguration wird aus ausgewählter Datei eingelesen
Name Type Description valuestring Configuration path -
setClassicTreeObjToArray(obj, prefix)
addons/configSwitcher/model.js, line 386 -
Flatten the classic tree object and push layer and folder objects into their respective arrays.
Name Type Description objObject Classic tree object to be flattened. prefixstring Prefix for nested properties. -
setTreeComponent(val, valbool){void}
addons/configSwitcher/model.js, line 361 -
Sets attributes of a tree component.
Name Type Description valstring ID of the tree component. valboolboolean Boolean value indicating visibility and selectability. -
setTreeComponentObj(val, treeComp){Promise.<void>}
addons/configSwitcher/model.js, line 277 -
Sets attributes of a tree component identified by the provided ID based on the provided object.
Name Type Description valstring The ID of the tree component. treeCompObject 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 236 -
Processes and displays configured folders.
Name Type Description folderItemsArray Array of folder items to be processed. -
showConfigLayers(layers){void}
addons/configSwitcher/model.js, line 154 -
Shows layers on the map based on the provided configuration.
Name Type Description layersArray An array of layer objects.