Draws a measurement between two points.
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
An object with the following properties:
|
Members
readonly angleFromHorizontal : Number
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 224
Gets the angle between horizontal and the distance line in radians
readonly angleFromVertical : Number
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 235
Gets the angle between vertical and the distance line in radians
Gets the distance of the measurement in meters
readonly horizontalDistance : Number
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 202
Gets the horizontal component of distance of the measurement in meters
Gets the icon.
Gets the id.
readonly instructions : Array.<String>
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 288
Gets the instruction text.
showComponentLines : Boolean
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 314
Gets and sets whether or not to show the x and y component lines of the measurement.
-
Default Value:
false
Gets the thumbnail.
Gets the type.
readonly verticalDistance : Number
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 213
Gets the vertical component of the distance of the measurement in meters
Methods
Destroys the measurement.
Handles click events while drawing a distance measurement.
Name | Type | Description |
---|---|---|
clickPosition |
Cartesian2 | The click position |
handleMouseMove(mousePosition)
packages/ion-sdk-measurements/Source/Measure/DistanceMeasurement.js 602
Handles mouse move events while drawing a distance measurement.
Name | Type | Description |
---|---|---|
mousePosition |
Cartesian2 | The mouse position |
Returns:
true if the object has been destroyed, false otherwise.
Resets the measurement.