new DrawWall(viewer, optionsopt)
DrawWall class for drawing a polygon in a Cesium viewer.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Cesium.Viewer | The Cesium viewer instance. | |||||||||||||||||||||
options |
Object |
<optional> |
Options for the drawing tool.
Properties
|
- Source:
Example
const drawWall = new DrawWall(viewer, { color: Cesium.Color.RED });
drawWall.on();
// To disable the drawing tool and clear entities
drawWall.off();
Methods
off() → {void}
Disables the polygon drawing tool. and clears the entities.
- Source:
Returns:
- Type
- void
on() → {boolean|void}
Enables the polygon drawing tool.
Left click to add points, right click to finish.
- Source:
Returns:
-
Continue - Whether to continue measuring after the first click.
- Type
- boolean
-
- Type
- void