new MeasureAngle(viewer, optionsopt)
MeasureAngle class for measuring angles in a Cesium viewer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
viewer |
Cesium.Viewer | The Cesium viewer instance. | |
options |
Object |
<optional> |
Optional parameters for the measurement. |
- Source:
Example
const measureAngle = new MeasureAngle(viewer);
measureAngle.on();
// To disable the measurement tool and clear entities:
measureAngle.off();
Methods
off() → {void}
Disables the measurement tool and clears the entities.
- Source:
Returns:
- Type
- void
on() → {boolean|void}
Enables the 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