3D-City Model
    Preparing search index...

    LengthMeasurementState – App UI state for interactive building/line length measurement.

    Ensures singleton pattern (only one active at a time). Manages button UI, info window, event registration for picking and loading associated line/length data from remote 3D tilesets. Handles proper measurement cleanup, state transitions, and deactivation workflow.

    The button element that activates this measurement state.

    instance - Singleton instance reference.

    const state = new LengthMeasurementState(btn);
    state.apply(app);

    Hierarchy (View Summary)

    • State
      • LengthMeasurementState
    Index

    Constructors

    Properties

    button: undefined | HTMLButtonElement

    Button associated with this state.

    dependentStates: string[]

    Required/precondition states.

    exclusiveStates: string[]

    States that are deactivated when this state activates.

    name: string

    Name/identifier for the state.

    removeLeftClickHandle: any
    restoreStates: string[]

    States that should be restored when this state ends.

    Methods

    • Enters length measurement mode. Disables info box, binds button handler for exit, installs picking logic, and opens the measurement info window.

      Parameters

      • app: any

        Application reference.

      Returns void