ion SDK new Cesium.MeasureViewModel(options)

A widget for making ephemeral measurements.
Name Type Description
options Object An object with the following properties:
Name Type Description
scene Scene The scene
units MeasureUnits optional The units of measurement
locale String optional The BCP 47 language tag string customizing language-sensitive number formatting. If undefined, the runtime's default locale is used. See the Intl page on MDN
primitives PrimitiveCollection optional A collection in which to store the measurement primitives


Gets and sets whether the measurement toolbar is expanded.
Default Value: false
Gets and sets whether the instructions are visible.
Default Value: false
Gets the array of available measurement types.
Gets the scene.
Gets or sets the currently selected measurement. This property is observable.
Default Value: undefined
Gets the selected unit of measurement.


Destroys the widget view model.
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.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.