3D-City Model
    Preparing search index...

    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.

    The Cesium Viewer or host application context.

    Initial point positions (optional).

    Maximum number of points (optional, usually 3).

    Color for control points.

    Color for drawing lines.

    If true, enables rendering of drawing.

    Callback when measurement is complete.

    const heightMeas = new HeightMeasurement(viewer, {
    onFinishCallback: () => {
    console.log("Height measurement completed!", heightMeas.cartesians);
    }
    });

    // Later, show/hide or remove it:
    heightMeas.show = false;
    heightMeas.destroy();

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _cartesians: any
    _finished: undefined | boolean
    _unit: undefined | string
    app: any

    Reference to the parent Cesium Viewer or app.

    destroyed: undefined | boolean
    drawing: undefined | HeightDrawing
    id: string

    Unique identifier for this measurement instance.

    label: Label

    Label associated with this measurement (unit and prefix are forwarded).

    lineColor: Color

    Color for drawn lines.

    onFinishCallback: Function

    Finish callback (settable by onFinish()).

    pointColor: Color

    Color for the points (dots).

    render: any
    segments: undefined | any[]

    Accessors

    Methods

    • Finalizes the measurement if drawing is valid and complete. Triggers segment calculation and sets finished true.

      Returns boolean

      True if successfully terminated/complete.