Class: PendlerCoreModel

PendlerCoreModel

PendlerCoreModel

new PendlerCoreModel()

modules/tools/pendler/core/model.js, line 53
Properties:
Name Type Default Description
kreis String "" name of the landkreis
kreise Array [ names of landkreise
pendlerLegend Array [ the legend
renderToWindow Boolean true Flag if tool should be rendered in window
zoomLevel Number 1 level map is zoomed
url= String "https://geodienste.hamburg.de/MRH_WFS_Pendlerverflechtung" url to get the 'pendlerverflechtung' from
params= Object { REQUEST: "GetFeature", SERVICE: "WFS", TYPENAME: "app:mrh_kreise", VERSION: "1.1.0", maxFeatures: "10000" } Request params to get the features.
featureType= String "mrh_einpendler_gemeinde" name of a feature type
attrAnzahl String "anzahl_einpendler" name of the attribute for count of commuter
attrGemeinde String "wohnort" name of the attribute called 'gemeinde'
alertId String "" id of an alert before download
attributionText String "<b>Die Daten dürfen nicht für gewerbliche Zwecke genutzt werden.
" + "Quelle: Bundesagentur für Arbeit - https://statistik.arbeitsagentur.de/" text to show as an attribution
Fires:
  • event://todo
Listens to Events:

Extends

Methods

assertLayerOnTop(layerName){void}

modules/tools/pendler/core/model.js, line 352
Increases the zIndex of the layer with the given name, so it is readable.
Name Type Description
layerName String name of the layer

centerGemeinde(setMarker){void}

modules/tools/pendler/core/model.js, line 153
Übergibt die Zentrumskoordinate der Gemeinde an die MapView, abhängig der Richtung.
Name Type Description
setMarker bool Wenn "true" wir ein Marker gesetzt.

createAlertBeforeDownload(){void}

modules/tools/pendler/core/model.js, line 300
Creates a confirmable alert with the 'attributionText'

createPostBody(value){void}

modules/tools/pendler/core/model.js, line 274
Bereite den Inhalt der Abfrage an den WFS vor.
Name Type Description
value String Abzufragender Schlüssel (im Falle des Pendler-Tools: "Wohnort" oder "Arbeitsplatz")
Returns:
Rückgabewert

download(){void}

modules/tools/pendler/core/model.js, line 315
downloads all line-features as csv file

parseFeatures(data){void}

modules/tools/pendler/core/model.js, line 213
Success Funktion für die Features
Name Type Description
data ojbect Response

parseGemeinden(data){void}

modules/tools/pendler/core/model.js, line 196
Success Funktion für die Gemeinden
Name Type Description
data ojbect Response

parseKreise(data){void}

modules/tools/pendler/core/model.js, line 176
Success Funktion für die Landkreise
Name Type Description
data object Response

resetWindow(){void}

modules/tools/pendler/core/model.js, line 366
resets the window by unsetting 'kreis', 'pendlerLegend' and 'postbody'

selectFeatures(rawFeatures){Array.<Object>}

modules/tools/pendler/core/model.js, line 258
Sortieren der Features nach Pendler-Anzahl sowie Abschneiden der Liste gemäß der Top-Angabe.
Name Type Description
rawFeatures Array.<Object> Feature-Liste
Returns:
und Abgeschnittene Feature-Liste

sendRequest(type, data, successFunction){void}

modules/tools/pendler/core/model.js, line 132
Führt einen HTTP-Request aus
Name Type Description
type String GET oder POST
data String data to send
successFunction function Wird aufgerufen wenn der Request erfolgreich war

setAlertId(value){void}

modules/tools/pendler/core/model.js, line 488
Sets the id of the alert
Name Type Description
value String alert-id

setAttrAnzahl(value){void}

modules/tools/pendler/core/model.js, line 416
Sets the attribute for 'Anzahl'
Name Type Description
value String the attribute name

setAttrGemeinde(value){void}

modules/tools/pendler/core/model.js, line 424
Sets the attribute for 'Gemeinde'
Name Type Description
value String the attribute name

setDirection(value){void}

modules/tools/pendler/core/model.js, line 472
Sets the direction 'Wohnort' or 'Arbeitsort'
Name Type Description
value String the direction

setFeatureType(value){void}

modules/tools/pendler/core/model.js, line 408
Sets the feature type
Name Type Description
value String type of a feature

setGemeinde(value){void}

modules/tools/pendler/core/model.js, line 456
Sets the 'Gemeinde'
Name Type Description
value String name of the 'Gemeinde'

setGemeinden(value){void}

modules/tools/pendler/core/model.js, line 448
Sets a list of 'Gemeinde'
Name Type Description
value Array.<String> names of the 'Gemeinde'

inherited setGlyphicon(value){void}

modules/core/modelList/item.js, line 69
Setter for glyphicon
Name Type Description
value String Glyphicon

inherited setId(value){void}

modules/core/modelList/item.js, line 34
Setter for id
Name Type Description
value String Id

inherited setIsActive(value){void}

modules/core/modelList/tool/model.js, line 129
Activates or deactivates tool
Name Type Description
value Boolean Flag if tool is active

inherited setIsInThemen(value){void}

modules/core/modelList/item.js, line 78
Setter for isInThemen
Name Type Description
value Boolean Flag if item is in themen

inherited setIsVisibleInMenu(value){void}

modules/core/modelList/item.js, line 105
Setter for setIsVisibleInMenu
Name Type Description
value Boolean Flag if item is visible in menu

inherited setIsVisibleInTree(value){void}

modules/core/modelList/item.js, line 96
Setter for isVisibleInTree
Name Type Description
value Boolean Flag if item is visible in layertree

setKreis(value){void}

modules/tools/pendler/core/model.js, line 440
Sets the 'Landkreis'
Name Type Description
value String name of the 'Landkreis'

setKreise(value){void}

modules/tools/pendler/core/model.js, line 432
Sets the 'Landkreise'
Name Type Description
value Array.<String> names of the 'Landkreise'

inherited setLevel(value){void}

modules/core/modelList/item.js, line 87
Setter for level
Name Type Description
value String Level

setLineFeatures(value){void}

modules/tools/pendler/core/model.js, line 384
Sets the line features
Name Type Description
value Array.<Feature> body of the post request

inherited setName(value){void}

modules/core/modelList/item.js, line 52
Setter for name
Name Type Description
value String Name

setParams(value){void}

modules/tools/pendler/core/model.js, line 400
Sets the params for a request
Name Type Description
value Object params

inherited setParentId(value){void}

modules/core/modelList/item.js, line 43
Setter for parentId
Name Type Description
value String ParentId

setPostBody(value){void}

modules/tools/pendler/core/model.js, line 376
Sets the body of the post request
Name Type Description
value String body of the post request

setTrefferAnzahl(value){void}

modules/tools/pendler/core/model.js, line 464
Sets the amount of hits
Name Type Description
value String hit count

inherited setType(value){void}

modules/core/modelList/item.js, line 60
Setter for type
Name Type Description
value String Type

setUrl(value){void}

modules/tools/pendler/core/model.js, line 392
Sets the url
Name Type Description
value String url

setZoomLevel(value){void}

modules/tools/pendler/core/model.js, line 480
Sets the zoomlevel
Name Type Description
value Number the level

inherited superChangeLang(){Void}

modules/core/modelList/tool/model.js, line 113
change language - sets or translates the name of this tool, if property i18nextTranslate is no function. If name is defined in config.json, the name is not translated else property nameTranslationKey is used.

truncateFeatureList(features, limitText){Array.<Object>}

modules/tools/pendler/core/model.js, line 230
Übernehme nur die vorgegebene Anzahl an Features aus der Liste und verwerfe den Rest. Gezählt wird von vorne.
Name Type Description
features Array.<Object> Zu kürzende Feature-Liste
limitText String Anzahl der zu übernehmenden Features in Textform (TopX, Alle)
Returns:
Feature-Liste