Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MeasurementViewModel

Hierarchy

Index

Properties

activeTool

activeTool: "area" | "distance" | "direct-line"

Specifies the current measurement tool to display.

Read more...

activeViewModel

View model of the active measurement widget.

Read more...

areaUnit

Unit system (imperial, metric) or specific unit used for displaying the area values.

Read more...

declaredClass

declaredClass: string

destroyed

destroyed: boolean

initialized

initialized: boolean

linearUnit

linearUnit: SystemOrLengthUnit

Unit system (imperial, metric) or specific unit used for displaying the distance values.

Read more...

Readonly state

state: "disabled" | "ready" | "measuring" | "measured"

The ViewModel's state.

Read more...

view

A reference to the MapView or SceneView.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns MeasurementViewModel

destroy

  • destroy(): void
  • Returns void

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns MeasurementViewModel

  • Parameters

    Returns MeasurementViewModel

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

Generated using TypeDoc