3D-City Model
    Preparing search index...

    AreaMeasurementState – App state for interactive building/area measurement in a Cesium/3D viewer.

    Ensures only one AreaMeasurementState instance is active (singleton), manages UI buttons, click event binding, and toggles a dedicated measurement info window. On user interaction, loads the relevant building area 3D tiles and displays them on demand.

    The UI button element that triggers this measurement mode.

    instance - Ensures singleton behavior.

    // Activating the state:
    const state = new AreaMeasurementState(myButton);
    state.apply(app); // enter area measurement mode

    Hierarchy (View Summary)

    • State
      • AreaMeasurementState
    Index

    Constructors

    Properties

    button: undefined | HTMLButtonElement

    Reference to the measurement activation button.

    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 area measurement mode: hides infobox, configures button state/callback, and opens info window. Binds click to remove this state, and sets up left-click building area handler.

      Parameters

      • app: any

        Viewer/app reference.

      Returns void

    • Sets up input action handler for left-click to trigger area measurement on picked building. Loads the relevant building area tileset for the picked feature if available.

      Parameters

      • app: any

      Returns void