The application context.
Optional
options: object = {}See class description for available options.
Array of Cesium Entity polylines.
Access the current array of point positions.
The color applied to the points.
Indicates if drawing is finished.
The color used for all connecting lines.
The maximum number of points.
The color for the points.
Current set of points (last uncommitted included if drawing).
Show/hide all points and polylines in the drawing. Middle point is always hidden.
Visibility of the drawing (true = points shown).
Cancel this drawing (destroys if not already finished).
True if canceled, false if already finished.
Destroy all Cesium entities created by this drawing.
Utility to ensure all three points are distinct (applies offset if needed).
Optional
epsilon: any = ...Manually trigger the finish callback.
Mark this drawing as finished/complete. Cleans up interaction handlers and disables cursor.
Always true when finishing.
HeightDrawing – Specialized drawing for visualizing and measuring height between 3 points in 3D.
Extends
Drawing
to support 3 interactive points (lowest, middle, highest), auto-adjusts the intermediate point vertically, and displays colored lines for visualization.Provides separate properties for controlling point and line color, and manages visibility and destruction for all involved Cesium entities.
Param: app
The Cesium or host application instance.
Param: options
Param: options.points
Optional initial array of Cartesian positions.
Param: options.pointColor
The color used for the points.
Param: options.lineColor
The color for the lines.
Param: options.addPoint
Whether to immediately add the first point on construction.
Param: options.onMoveCallback
Callback when a point is moved.
Param: options.onSetCallback
Callback when a point is set.
Param: options.onFinishCallback
Callback when drawing is finished.
Example