Class: DefaultTreeParser

Core.ConfigLoader DefaultTreeParser

DefaultTreeParser

new DefaultTreeParser()

modules/core/configLoader/parserDefaultTree.js, line 12
Fires:

Extends

Methods

inherited addFolder(name, id, parentId, level, isExpanded){void}

modules/core/configLoader/parser.js, line 317
todo
Name Type Description
name * todo
id * todo
parentId * todo
level * todo
isExpanded * todo
Fires:

inherited addGdiLayer(hit){void}

modules/core/configLoader/parser.js, line 517
Adds found layer to layer tree
Name Type Description
hit Object layer to be added
Fires:

inherited addGeoJSONLayer(name, id, geojson){void}

modules/core/configLoader/parser.js, line 477
todo
Name Type Description
name * todo
id * todo
geojson * todo

inherited addItem(obj){void}

modules/core/configLoader/parser.js, line 270
Adds an item(layer, folder, ...) to the end of the attribute "itemList".
Name Type Description
obj Object Item

inherited addItemAtTop(obj){void}

modules/core/configLoader/parser.js, line 592
Adds an item(layer, folder, ...) at the beginning to the attribute "itemList
Name Type Description
obj Object Item

inherited addItemByPosition(obj, position){void}

modules/core/configLoader/parser.js, line 286
Adds an item(layer, folder, ...) to the attribute "itemList" at the specified position.
Name Type Description
obj Object Item
position Number position in ItemList

inherited addItems(objs, attr){void}

modules/core/configLoader/parser.js, line 301
Allows to create an array of objects that all have attr in common
Name Type Description
objs array Array of related objects, e.g. categories in Themenbaum
attr object Layerobject

inherited addLayer(name, id, parentId, level, layers, url, version){void}

modules/core/configLoader/parser.js, line 343
todo
Name Type Description
name * todo
id * todo
parentId * todo
level * todo
layers * todo
url * todo
version * todo

inherited addOrRemove3DFolder(treeType, isMobile, overLayer3d, overLayers3DName){void}

modules/core/configLoader/parser.js, line 721
adds or removes a folder for 3d data to topic tree considering the map mode
Name Type Description
treeType String type of tree
isMobile boolean vsible map mode from portal
overLayer3d object contains layer fro 3d mode
overLayers3DName String Name of folder.
Fires:

inherited addTreeMenuItems(treeType){void}

modules/core/configLoader/parser.js, line 656
regulates the folder structure of the theme tree taking into account the map mode
Name Type Description
treeType String type of topic tree
Fires:

inherited addVectorLayer(id, name, typ, parentId, isVisibleInTree, selectionIDX){void}

modules/core/configLoader/parser.js, line 452
adds a vector layer to model list
Name Type Description
id string id of the layer
name string layer name
typ string layer typ
parentId string parentID of the layer
isVisibleInTree boolean true if layer should be visivle in tree
selectionIDX number id for position in layer tree

inherited addWmsLayer(layerConf){void}

modules/core/configLoader/parser.js, line 384
Adds an external WMS layer to the map and the LayerTree. Layer does not need to be in the internal layer list, since we define it directly by classic WMS params like URL, LAYERS, etc.
Name Type Description
layerConf Object Layer configuration with properties like "url", "layers", etc.

create3dLayer(layerList, Layer3dList){void}

modules/core/configLoader/parserDefaultTree.js, line 140
todo
Name Type Description
layerList * todo
Layer3dList Object the 3d layer list or null
Fires:

createBaselayer(layerList){void}

modules/core/configLoader/parserDefaultTree.js, line 171
Creates the base layer items. "newLayer" may be undefined if its id gets removed by function deleteLayersIncludeCache. Then the configured id is not found.
Name Type Description
layerList Array.<Object> Layers

createLayerPerDataset(layerList){Array.<Object>}

modules/core/configLoader/parserDefaultTree.js, line 74
Retrieves all objects with more than one record from the layerList Creates a new layer per dataset
Name Type Description
layerList Array.<Object> Objekte from services.json
Returns:
- Objects from services.json that are assigned to exactly one dataset

inherited createModelList(){ModelList}

modules/core/configLoader/parser.js, line 636
todo

createModelsForDefaultTree(tree){void}

modules/core/configLoader/parserDefaultTree.js, line 270
Creates all models for the DefaultTree
Name Type Description
tree Object tree created from the categories and MetaNames
Fires:

createObliqueLayer(layerList){void}

modules/core/configLoader/parserDefaultTree.js, line 127
todo
Name Type Description
layerList * todo

inherited createUniqId(value){String}

modules/core/configLoader/parser.js, line 813
Generates a Uniq ID with prefix Before that, all spaces are removed from the prefix.
Name Type Description
value String Prefix for Uniq-Id
Returns:
- Uniq-Id

deleteLayersIncludeCache(layerList){Array.<Object>}

modules/core/configLoader/parserDefaultTree.js, line 55
Removes all layers that are already displayed in the cache.
Name Type Description
layerList Array.<Object> Objekte from services.json
Returns:
- Objekte from services.json

filterList(layerList){Array.<Object>}

modules/core/configLoader/parserDefaultTree.js, line 40
Filters all objects from the layerList that are not WMS and are assigned to at least one data record.
Name Type Description
layerList Array.<Object> Objekte from services.json
Returns:
- Objekte from services.json

inherited getInitVisibBaselayer(){String}

modules/core/configLoader/parser.js, line 842
Returns the initial visible baselayer from config.json. for array several id only the first one is passed
Returns:
inital visible baselayer

inherited getItemByAttributes(value){Object}

modules/core/configLoader/parser.js, line 606
get an item from itemList by a given value
Name Type Description
value Object todo

inherited getItemsByAttributes(value){Array}

modules/core/configLoader/parser.js, line 615
get one ore more item from itemList by a given value
Name Type Description
value Object t odo

inherited getItemsByMetaID(metaID){*}

modules/core/configLoader/parser.js, line 824
todo
Name Type Description
metaID * todo

inherited getLastSelectionIdx(){Integer}

modules/core/configLoader/parser.js, line 860
Returns the last / max. selectionIDX of the current layers.
Returns:
max. selectionIDXs

groupDefaultTreeOverlays(overlays){void}

modules/core/configLoader/parserDefaultTree.js, line 235
Groups layers by category and MetaName
Name Type Description
overlays Object The technical data as an object

inherited mergeObjectsByIds(ids, layerlist){Array.<Object>}

modules/core/configLoader/parser.js, line 765
Groups objects from the layerlist that match the IDs in the passed list.
Name Type Description
ids Array.<string> Array of ids whose objects are grouped together
layerlist Array.<Object> Objects from the services.json
Returns:
- Objects from the services.json

inherited parseControls(items){void}

modules/core/configLoader/parser.js, line 255
todo
Name Type Description
items Array todo

parseLayerList(layerList, Layer3dList){void}

modules/core/configLoader/parserDefaultTree.js, line 99
Creates the layertree from the Services.json parsed by Rawlayerlist.
Name Type Description
layerList Array.<object> -
Layer3dList Object the 3d layer list or null

inherited parseMenu(items, parentId, init){void}

modules/core/configLoader/parser.js, line 171
Parsed the menu entries (everything except the contents of the tree)
Name Type Description
items Object Single levels of the menu bar, e.g. contact, legend, tools and tree
parentId String indicates to whom the items will be added
init Boolean indicates initial run of loop
Fires:

inherited parseSearchBar(searchbarConfig){void}

modules/core/configLoader/parser.js, line 243
todo
Name Type Description
searchbarConfig Object todo

parseTree(layerList, Layer3dList){void}

modules/core/configLoader/parserDefaultTree.js, line 21
todo
Name Type Description
layerList * todo
Layer3dList Object the 3d layer list or null

inherited postionFor3DFolder(itemList){number}

modules/core/configLoader/parser.js, line 747
get the position where the 3d folder has to be inserted in the itemlist
Name Type Description
itemList array contains the items
Returns:
for 3d folder

inherited removeItem(id){void}

modules/core/configLoader/parser.js, line 624
removes an item from itemList by a given id
Name Type Description
id String id from item that be removed

inherited setBaselayer(value){void}

modules/core/configLoader/parser.js, line 897
Setter for attribute "itemList"
Name Type Description
value * todo

inherited setCategory(value){void}

modules/core/configLoader/parser.js, line 924
Setter for attribute "category"
Name Type Description
value * todo

inherited setItemList(value){void}

modules/core/configLoader/parser.js, line 888
Setter for attribute "itemList"
Name Type Description
value * todo

inherited setOverlayer(value){void}

modules/core/configLoader/parser.js, line 906
Setter for attribute "overlayer"
Name Type Description
value * todo

inherited setTreeType(value){void}

modules/core/configLoader/parser.js, line 915
Setter for attribute "treeType"
Name Type Description
value * todo

splitIntoFolderAndLayer(metaNameGroups, name){object}

modules/core/configLoader/parserDefaultTree.js, line 205
subdivide the layers grouped by metaName into folders and layers if a MetaNameGroup has only one entry it should be added as layer and not as folder
Name Type Description
metaNameGroups Array.<object> todo
name string todo