Draws a measurement between two points with the same height.
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
An object with the following properties:
|
Members
Gets the distance in meters
Gets the icon.
Gets the id.
readonly instructions : Array.<String>
packages/ion-sdk-measurements/Source/Measure/HorizontalMeasurement.js 86
Gets the instruction text.
readonly thumbnail : String
packages/ion-sdk-measurements/Source/Measure/HorizontalMeasurement.js 68
Gets the thumbnail.
Gets the type.
Methods
Destroys the measurement.
handleClick(clickPosition)
packages/ion-sdk-measurements/Source/Measure/HorizontalMeasurement.js 125
Handles click events while drawing a horizontal measurement.
Name | Type | Description |
---|---|---|
clickPosition |
Cartesian2 | The click position |
Ends drawing on double click.
handleMouseMove(mousePosition, shift)
packages/ion-sdk-measurements/Source/Measure/HorizontalMeasurement.js 138
Handles mouse movements while drawing a horizontal measurement.
Name | Type | Description |
---|---|---|
mousePosition |
Cartesian2 | The mouse position |
shift |
Boolean | True if the shift key was pressed |
Returns:
true if the object has been destroyed, false otherwise.
Resets the measurement.