3D-City Model
    Preparing search index...

    LineMeasurementState – App UI state for interactive polyline (distance) measurements in a Cesium viewer.

    Ensures singleton behavior: only one active at a time. Manages lifecycle of PolylineMeasurement tools, button handlers, info window display, event listeners, and measurement cleanup. Integrates with the measurement list for UI result management.

    UI button that activates this state.

    instance - Singleton reference.

    const state = new LineMeasurementState(myLineBtn);
    state.apply(app);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    button: HTMLButtonElement

    The toggling/activation button for this measurement state.

    dependentStates: string[]

    Required/precondition states.

    exclusiveStates: string[]

    States that are deactivated when this state activates.

    name: string

    Name/identifier for the state.

    restoreStates: string[]

    States that should be restored when this state ends.

    rightClickHandle: undefined | (() => void)

    Methods

    • Activates line measurement mode: disables selection, starts new measurement, removes unfinished measurements, binds events, and opens the info window.

      Parameters

      • app: any

        The main application object.

      Returns void