Class: Measure

Tools.Measure Measure

Measure

new Measure()

modules/tools/measure/model.js, line 297
Properties:
Name Type Default Description
unit String "m" unit of measure
quickHelp Boolean false
isMap3d Boolean false Flag if measure has 3D view
uiStyle String "DEFAULT" style for master portal
scale Number -1
style String "DEFAULT" style for master portal
idCounter Number 0 counter for unique ids
geometry String "", filled with "Geometrie"- translated
currentLng String "", contains the current language - view listens to it
measure String "", filled with "Einheit"- translated
plzConsider String "", filled with "Bitte beachten Sie"- translated
valuesNotExact String "", filled with "Die angezeigten Werte unterliegen Ungenauigkeiten"- translated
findFurtherInf String "", filled with "Weitere Informationen finden Sie hier"- translated
deleteMeasurements String "", filled with "Messungen löschen"- translated
deleteOneMeasurementsGeometry String "", filled with "Einzelne Messungen löschen"- translated
editOneMeasurementsGeometry String "", filled with "Einzelne Messungen bearbeiten"- translated
stretch String "", filled with "Strecke"- translated
area String "", filled with "Fläche"- translated
displayDeviance Boolean If set to false, deviance information is hidden.

Extends

Methods

calcDeltaPow(coordinates, pos0, pos1){undefined}

modules/tools/measure/model.js, line 960
Berechnet das Quadrat der deltas (für x und y) von zwei Koordinaten
Name Type Description
coordinates Array Koordinatenliste der Geometrie
pos0 number 1. Koordinate
pos1 number 2. Koordinate

changeLang(lng){Void}

modules/tools/measure/model.js, line 420
change language - sets default values for the language
Name Type Description
lng String the language changed to

changeMap(map){this}

modules/tools/measure/model.js, line 480
changes map (3D or 2D View)
Name Type Description
map string 3D or 2D

createInteraction(drawType){this}

modules/tools/measure/model.js, line 604
draws the feature.
Name Type Description
drawType string type of drawing feature (polygon or line)

createLineFeature(firstCoord, lastCoord){object}

modules/tools/measure/model.js, line 588
create line feature
Name Type Description
firstCoord object first coordinate of the line feature
lastCoord object last coordinate of the line feature
Returns:
- line feature

createPointFeature(coords, id){object}

modules/tools/measure/model.js, line 572
create point feauture
Name Type Description
coords object coordinates of point in 3D
id void undefined

createSelectInteraction(layer){ol/interaction/Select}

modules/tools/measure/model.js, line 1288
creates an interaction for selecting vector features
Name Type Description
layer ol/layer/Vector for the selected(deleted) features

deleteFeatures(){undefined}

modules/tools/measure/model.js, line 944
Löscht alle Geometrien und die dazugehörigen MeasureTooltips.

formatArea(polygon){undefined}

modules/tools/measure/model.js, line 1042
Berechnet die Größe der Fläche.
Name Type Description
polygon ol.geom.Polygon Polygon geometry

formatLength(line){undefined}

modules/tools/measure/model.js, line 973
Berechnet die Länge der Strecke.
Name Type Description
line ol.geom.LineString Linestring geometry

generate3dTextStyles(distance, heightDiff){object}

modules/tools/measure/model.js, line 728
generates style for text in 3D view
Name Type Description
distance number distance between two points
heightDiff number height (for 3D measure)

generateTextPoint(feature, distance, heightDiff, coords){this}

modules/tools/measure/model.js, line 846
generates text for points
Name Type Description
feature object geometry feature
distance number distance for 3D
heightDiff number height for 3D
coords number coordinates for 3D

generateTextStyles(feature){object}

modules/tools/measure/model.js, line 779
generates style for text in 2D view
Name Type Description
feature object geometry feature

getIsDrawing(){void}

modules/tools/measure/model.js, line 1235
getter for drawn function

getLocalizedValues(){Object}

modules/tools/measure/model.js, line 406
Returns a localized object
Returns:
Object

handle3DClicked(obj){this}

modules/tools/measure/model.js, line 507
Name Type Description
obj object point with coordinates
TODO
  • Write the documentation.

highlightFeature(feature){void}

modules/tools/measure/model.js, line 1155
Highlight the active feature.
Name Type Description
feature object the feature that is to be highlighted

modifyAllSelected(){void}

modules/tools/measure/model.js, line 1331
Edit and Delete Points (Geometry) Delete (Select + DoubleClick)

moveTextPoint(evt){this}

modules/tools/measure/model.js, line 712
Name Type Description
evt object Map Browser Pointer Event
TODO
  • Write the documentation.

notifyElevationProfile(feature){void}

modules/tools/measure/model.js, line 1373
Notify the elevation profile module. Open the profile if a line string geometry has been created.
Name Type Description
feature Object the ol feature that has been drawn

place3dMeasureTooltip(distance, heightDiff, position){this}

modules/tools/measure/model.js, line 896
Name Type Description
distance number distance for 3D
heightDiff number height for 3D
position number -
TODO
  • Write the documentation.

registerClickListener(context){this}

modules/tools/measure/model.js, line 687
Name Type Description
context object Object
TODO
  • Write the documentation.

registerPointerMoveListener(context){this}

modules/tools/measure/model.js, line 678
Name Type Description
context object Object
TODO
  • Write the documentation.

removeIncompleteDrawing(){void}

modules/tools/measure/model.js, line 1136
removes the last drawing if it has not been completed

setClickListener(value){this}

modules/tools/measure/model.js, line 1188
setter for click listener
Name Type Description
value object -

setDecimal(value){this}

modules/tools/measure/model.js, line 936
Setter for Decimal
Name Type Description
value string value

setDraw(value){this}

modules/tools/measure/model.js, line 1170
setter for draw
Name Type Description
value object Draw

setDropDownSnippetGeometry(value){this}

modules/tools/measure/model.js, line 1262
setter for dropdown snippet geometry
Name Type Description
value object snippet dropdown model for geometry

setDropDownSnippetUnit(value){this}

modules/tools/measure/model.js, line 1271
setter for dropdown snippet unit
Name Type Description
value object snippet dropdown model for unit

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

setIdCounter(value){void}

modules/tools/measure/model.js, line 1280
Sets the idCounter.
Name Type Description
value string counter

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

setIsDrawing(value){this}

modules/tools/measure/model.js, line 1215
setter for drawn function
Name Type Description
value boolean true or false

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

inherited setLevel(value){void}

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

inherited setName(value){void}

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

inherited setParentId(value){void}

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

setPointerMoveListener(value){this}

modules/tools/measure/model.js, line 1179
Name Type Description
value object -
TODO
  • Write the documentation.

setQuickHelp(value){void}

modules/tools/measure/model.js, line 1253
setter for quickHelp
Name Type Description
value boolean quickHelp

setScale(value){this}

modules/tools/measure/model.js, line 1206
setter for scale
Name Type Description
value number -

setStatus(model, value){this}

modules/tools/measure/model.js, line 449
Setter for Status
Name Type Description
model object Measure Model
value boolean Rückgabe eines Boolean

setStyle(value){this}

modules/tools/measure/model.js, line 1244
setter for style
Name Type Description
value string table or default (for master portal)

setTextPoint(value){this}

modules/tools/measure/model.js, line 1197
setter for text point
Name Type Description
value object -

inherited setType(value){void}

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

setUiStyle(value){this}

modules/tools/measure/model.js, line 928
Setter for Style
Name Type Description
value string table or default (for master portal)

setUnit(value){void}

modules/tools/measure/model.js, line 919
Setter for unit
Name Type Description
value string m/km, m²/km²/ha

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.

uniqueId(prefix){string}

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

unitChange(unitModel){void}

modules/tools/measure/model.js, line 388
Name Type Description
unitModel object The selected unit model instance

unregisterClickListener(context){this}

modules/tools/measure/model.js, line 704
Name Type Description
context object Object
TODO
  • Write the documentation.

unregisterPointerMoveListener(context){this}

modules/tools/measure/model.js, line 696
Name Type Description
context object Object
TODO
  • Write the documentation.

unsetAllSelected(){void}

modules/tools/measure/model.js, line 1302