Class: MeasureHeight

MeasureHeight(viewer, optionsopt)

new MeasureHeight(viewer, optionsopt)

MeasureHeight class for measuring height in a Cesium viewer.
Parameters:
Name Type Attributes Description
viewer Object The Cesium viewer instance.
options Object <optional>
Options for the measurement tool.
Properties
Name Type Attributes Description
color Cesium.Color <optional>
The color of the measurement line and points.
Source:
Example
const measureHeight = new MeasureHeight(viewer, { color: Cesium.Color.RED });
measureHeight.on();
// To disable the measurement tool and clear entities:
measureHeight.off();

Methods

off() → {void}

Disables the angle measurement tool and clears the entities.
Source:
Returns:
Type
void

on() → {boolean|void}

Enables the height measurement tool. Click to start measuring, and click again to stop.
Source:
Returns:
  • Continue - Whether to continue measuring after the first click.
    Type
    boolean
  • Type
    void