Class: LayerInformationModel

LayerInformation LayerInformationModel

LayerInformationModel

new LayerInformationModel()

modules/layerInformation/model.js, line 43
Properties:
Name Type Default Description
cswId String "3" configures service from rest-services.json
isVisible Boolean false Flag, if the layerinformation is visible
uniqueIdList Array todo
datePublication String null Date of publication
dateRevision String null Date of revision
periodicity String null Periodicity
idCounter Number 0 counter for unique ids
overlay Overlay new Overlay({element: undefined}) the overlay
Fires:
Listens to Events:

Extends

Methods

areMetaIdsSet(metaDataIds){Boolean}

modules/layerInformation/model.js, line 185
Checks if the metaDataIds are an array and filled with at least on string
Name Type Description
metaDataIds Array an array containing metIds
Returns:
if metaId is found in the array

bindView(isMobile){void}

modules/layerInformation/model.js, line 166
Binds the view depending on mobile or not.
Name Type Description
isMobile Boolean true, if app is on a mobile

fetchedMetaData(cswObj){void}

modules/layerInformation/model.js, line 82
Updates parsed metadata of the layer.
Name Type Description
cswObj Object Contains informations about the layer

getOverlayElement(){Object}

modules/layerInformation/model.js, line 282
Getter function for overlay element
Returns:
overlay-element

isOwnMetaRequest(uniqueIdList, uniqueId){Boolean}

modules/layerInformation/model.js, line 94
Returns true, if the uniqueId is contained in list of uniqueIds
Name Type Description
uniqueIdList Array list of uniqueIds
uniqueId string uniqueId to check

removeUniqueIdFromList(uniqueIdList, uniqueId){void}

modules/layerInformation/model.js, line 103
Removes the uniqueId from the given list.
Name Type Description
uniqueIdList Array to remove the id from
uniqueId String to remove from list

requestMetaData(attrs){void}

modules/layerInformation/model.js, line 125
Triggers getMetaData from CswParser, if metaID available in attrs
Name Type Description
attrs Object Objekt mit Attributen zur Darstellung
Fires:

setAttributes(attrs){void}

modules/layerInformation/model.js, line 195
Is started with a trigger from the layer and takes the attributes for presentation
Name Type Description
attrs Object Objekt mit Attributen zur Darstellung
Fires:

setIdCounter(value){void}

modules/layerInformation/model.js, line 243
Sets the idCounter.
Name Type Description
value string counter

setIsVisible(value){void}

modules/layerInformation/model.js, line 251
Setter function for isVisible
Name Type Description
value Boolean true, if this is visible

setMetadataURL(){void}

modules/layerInformation/model.js, line 218
Checks the array of metaIDs and creates array metaURL with complete URL for template. Does not allow duplicated entries

setOverlayElement(value){void}

modules/layerInformation/model.js, line 267
Setter function for overlay element
Name Type Description
value Object the element

setUniqueIdList(value){void}

modules/layerInformation/model.js, line 259
Setter function for uniqueIdList
Name Type Description
value Array the uniqueIdList

setUrlIsVisible(value){void}

modules/layerInformation/model.js, line 275
Setter function for overlay element
Name Type Description
value Object the element

uniqueId(prefix){string}

modules/layerInformation/model.js, line 154
Returns a unique id, starts with the given prefix
Name Type Description
prefix string prefix for the id
Returns:
unique id

updateMetaData(parsedData){void}

modules/layerInformation/model.js, line 116
Adds all parsed data to this model.
Name Type Description
parsedData Object parsed metadata