Class: ClassicTreeParser

Core.ConfigLoader ClassicTreeParser

ClassicTreeParser

Extends

Methods

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

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

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

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

inherited addItem(obj){void}

modules/core/configLoader/parser.js, line 258
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 488
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 274
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 289
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 331
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 617
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 552
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, layerOrder){void}

modules/core/configLoader/parser.js, line 428
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
layerOrder number position in layer tree

inherited addWmsLayer(layerConf){void}

modules/core/configLoader/parser.js, line 372
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.

inherited createModelList(){ModelList}

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

inherited createUniqId(value){String}

modules/core/configLoader/parser.js, line 709
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

inherited getInitVisibBaselayer(){String}

modules/core/configLoader/parser.js, line 738
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 502
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 511
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 720
todo
Name Type Description
metaID * todo

inherited getLastLayerOrder(){Integer}

modules/core/configLoader/parser.js, line 756
Returns the last / max. layerOrder of the current layers.
Returns:
max. layerOrder

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

modules/core/configLoader/parser.js, line 661
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 243
todo
Name Type Description
items Array todo

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

modules/core/configLoader/parser.js, line 159
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 231
todo
Name Type Description
searchbarConfig Object todo

parseTree(object, parentId, level){void}

modules/core/configLoader/parserClassicTree.js, line 31
Adopted from parserCustomTree Parses the config.json. response.Themenconfig.classicTree The object from config.json and services.json are merged by id.
Name Type Description
object Object The complete tree configuration
parentId string Id of parent item.
level Number Level of recursion. Equals to level in layertree.
Fires:

inherited postionFor3DFolder(itemList){number}

modules/core/configLoader/parser.js, line 643
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 520
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 776
Setter for attribute "itemList"
Name Type Description
value * todo

inherited setCategory(value){void}

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

inherited setItemList(value){void}

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

inherited setOverlayer(value){void}

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

inherited setTreeType(value){void}

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