MeasureViewModel

new Cesium.MeasureViewModel(options)

A widget for making ephemeral measurements.
Name Type Description
options Object An object with the following properties:
Name Type Default Description
scene Scene The scene
units MeasureUnits MeasureUnits.METERS optional The units of measurement
showDistanceMeasureComponents Boolean false optional Whether or not to show the x and y components of the distance measurement by default

Members

Gets and sets whether the measurement toolbar is expanded.
Default Value: false

instructionsVisible : Boolean

Gets and sets whether the instructions are visible.
Default Value: false

readonlymeasurements : Array.<Measurement>

Gets the array of available measurement types.
Gets the scene.
Gets or sets the currently selected measurement. This property is observable.
Default Value: undefined

showDistanceMeasureComponents : Boolean

Gets and sets whether the x and y components of the distance measurement are visible.
Default Value: false
Gets the selected unit of measurement.

Methods

Destroys the widget view model.

isDestroyed()Boolean

Returns:
true if the object has been destroyed, false otherwise.
Resets the widget.
Toggles the state of the toolbar.
Toggles the visibility of the instructions panel.