Measurement

new Cesium.Measurement(options)

An abstract class defining a measurement.
Name Type Description
options Object An object with the following properties:
Name Type Description
scene Scene The scene
units MeasureUnits The selected units of measurement
primitives PrimitiveCollection A collection in which to store the measurement primitives
labels LabelCollection A collection in which to add the labels
points PointPrimitiveCollection A collection in which to add points

Members

Destroys the widget.
Resets the widget.

Methods

handleClick(clickPosition)

Handles click events while drawing a polygon.
Name Type Description
clickPosition Cartesian2 The click position

handleDoubleClick()

Ends drawing on double click.

handleMouseMove(mousePosition)

Handles mouse move events while drawing a polygon.
Name Type Description
mousePosition Cartesian2 The mouse position

isDestroyed()Boolean

Returns:
true if the object has been destroyed, false otherwise.