interface Measurement2DModelProperties {
    area: string;
    distance: string;
    geometry: any;
    mode: Measurement2DMode;
    perimeter: string;
    rawArea: number;
    rawDistance: number;
    rawPerimeter: number;
    state: Measurement2DState;
    unit: any;
}

Hierarchy (View Summary)

Properties

area: string

Locale specific representation of the area including the unit. Available if the mode is set to area.

distance: string

Locale specific representation of the length including the unit. Available if the mode is set to distance.

geometry: any

The measurement geometry. Available if the mode is set to area or distance. If mode is area, the geometry is a polygon. If mode is distance, the geometry is a polyline.

Measurement mode.

perimeter: string

Locale specific representation of the perimeter including the unit. Available if the mode is set to area.

rawArea: number

Area always in square meter. Available if the mode is set to area.

rawDistance: number

Distance always in meters. Available if the mode is set to distance.

rawPerimeter: number

Perimeter always in meters. Available if the mode is set to area.

Measurement state.

unit: any

Measurement unit is either unit system (metric, imperial) or a specific unit. Available if the mode is set to area or distance.