Class: drawPoint

drawPoint(viewer, optionsopt)

new drawPoint(viewer, optionsopt)

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