new OrientationModel(config)
modules/controls/orientation/model.js, line 39
Create orientation control instance
Name | Type | Description |
---|---|---|
config |
Object | todo |
Properties:
Name | Type | Default | Description |
---|---|---|---|
titleGeolocate |
String | "", | filled with "Standpunkt"- translated |
titleGeolocatePOI |
String | "", | filled with "In meiner Nähe"- translated |
Listens to Events:
Extends
Methods
-
addElement(){void}
modules/controls/orientation/model.js, line 97 -
Fügt das Element der ol.Overview hinzu. Erst nach render kann auf document.getElementById zugegriffen werden.
-
changeLang(lng){Void}
modules/controls/orientation/model.js, line 86 -
change language - sets default values for the language
Name Type Description lng
String the language changed to -
getDistance(feat, centerPosition){float}
modules/controls/orientation/model.js, line 309 -
Ermittelt die Entfernung des Features zur Geolocation auf Metergenauigkeit
Name Type Description feat
ol.feature Feature centerPosition
Array.<number> - -
getVectorFeaturesInCircle(distance){Array}
modules/controls/orientation/model.js, line 252 -
Ermittelt die Features aus Vektorlayern in einem Umkreis zur Position. Funktioniert auch mit Clusterlayern.
Name Type Description distance
integer Umkreis Returns:
of ol.features
-
sendPosition(){void}
modules/controls/orientation/model.js, line 121 -
Triggert die Standpunktkoordinate auf Radio
-
setConfig(){void}
modules/controls/orientation/model.js, line 105 -
Übernimmt die Einträge der config.json
-
union(arr1, arr2, equalityFunc){Array}
modules/controls/orientation/model.js, line 287 -
Computes the union of the passed-in arrays: the list of unique items, in order, that are present in one or more of the arrays.
Name Type Description arr1
Array the first array arr2
Array the second array equalityFunc
function to compare objects Returns:
union of the two arrays