new ClassicTreeParser()
modules/core/configLoader/parserClassicTree.js, line 15
Fires:
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 objObject 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 objObject 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 objObject Item positionNumber 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 objsarray Array of related objects, e.g. categories in Themenbaum attrobject 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 treeTypeString type of tree isMobileboolean vsible map mode from portal overLayer3dobject contains layer fro 3d mode overLayers3DNameString 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 treeTypeString 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 idstring id of the layer namestring layer name typstring layer typ parentIdstring parentID of the layer isVisibleInTreeboolean true if layer should be visivle in tree layerOrdernumber 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 layerConfObject Layer configuration with properties like "url", "layers", etc. -
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 valueString 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 valueObject 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 valueObject 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 idsArray.<string> Array of ids whose objects are grouped together layerlistArray.<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 itemsArray 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 itemsObject Single levels of the menu bar, e.g. contact, legend, tools and tree parentIdString indicates to whom the items will be added initBoolean indicates initial run of loop Fires:
-
inherited parseSearchBar(searchbarConfig){void}
modules/core/configLoader/parser.js, line 231 -
todo
Name Type Description searchbarConfigObject 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 objectObject The complete tree configuration parentIdstring Id of parent item. levelNumber 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 itemListarray 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 idString 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