AreaMeasurement

new Cesium.AreaMeasurement(options)

Creates an polygonal area 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

Gets the area value in meters squared
Gets the icon.

readonlyicon : String

Gets the icon.
Gets the id.

readonlyid : String

Gets the id.

readonlyinstructions : Array.<String>

Gets the instruction text.

readonlyinstructions : Array.<String>

Gets the instruction text.

readonlythumbnail : String

Gets the thumbnail.
Gets the thumbnail.

readonlythumbnail : String

Gets the thumbnail.
Gets the type.

readonlytype : String

Gets the type.

Methods

Destroys the widget.

handleClick(clickPosition)

Handles click events while drawing a polygon.
Name Type Description
clickPosition Cartesian2 The click position
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.
Resets the widget.