3D-City Model
    Preparing search index...

    PolygonMeasurementState – Manages the application UI state for interactive polygon (area) measurements in a Cesium viewer.

    Implements singleton logic: only one polygon measurement state can exist at a time. Handles UI events, tool lifecycle, modal window integration, and event handler setup/teardown. Ensures clean state removal, measurement cancellation/cleanup, and adds entries to a measurement result list when finished.

    UI button for toggling/activating this measurement.

    instance - Singleton state instance.

    const state = new PolygonMeasurementState(areaBtn);
    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