Cesium Viewer or host app context.
Optional
options: object = {}See class doc for details.
Reference to the parent Cesium Viewer or app.
Unique identifier for this measurement instance.
Label associated with this measurement (unit and prefix are forwarded).
Color for drawn lines.
Finish callback (settable by onFinish()
).
Color for the points (dots).
Measurement points, as an array or CallbackProperty.
Color for all features; only affects line color here.
Whether drawing/measurement is finished.
Completion/finished flag for lifecycle control.
Show or hide the measurement, including all child visuals.
Measurement unit for calculations and display.
(Re)build all labeled segment measurements. Destroys previous, then creates new LineMeasurements for every segment.
Calculates the (geometric) center of all measurement points.
Array [x, y, z] or undefined if no points.
Cancel and remove this measurement and all dependent visuals.
True if canceled and destroyed, false if already destroyed.
Destroy and clean up all associated objects/entities.
Set a callback to fire when measurement is finished. Chainable.
Finalizes the measurement if drawing is valid and complete. Triggers segment calculation and sets finished true.
True if successfully terminated/complete.
HeightMeasurement – Specialized measurement for interactively measuring 3D height differences.
Extends Measurement and leverages HeightDrawing for Cesium-based interactive placement of points, drawing of verticals, and dynamic labeling of height segments. Supports lifecycle management, segmented labeling, visibility and color controls, and callback on completion.
Param: app
The Cesium Viewer or host application context.
Param: options
Param: options.cartesians
Initial point positions (optional).
Param: options.maxPoints
Maximum number of points (optional, usually 3).
Param: options.pointColor
Color for control points.
Param: options.lineColor
Color for drawing lines.
Param: options.render
If true, enables rendering of drawing.
Param: options.onFinishCallback
Callback when measurement is complete.
Example