Cesium Viewer or scene context.
Optional
options: object = {}See above for details.
Cesium polyline entity for this drawing.
Access the current array of point positions.
The color applied to the points.
Indicates if drawing is finished.
Polyline color (updates entity material).
The maximum number of points.
Point color (updates pointSet).
All points in the polyline. Setter is a no-op (for Drawing API consistency).
Change visibility of both points and connected line.
Visibility of the drawing (true = points shown).
Cancel this drawing (destroys if not already finished).
True if canceled, false if already finished.
Destroy all created entities and remove from Cesium scene.
Manually trigger the finish callback.
Complete the drawing only if two or more points are placed. For open-ended drawings, will remove the unfinished point.
true
if the polyline is valid/finished, else false
.
PolylineDrawing – Interactive drawing class for creating polylines (multi-segment lines) in Cesium scenes.
Extends Drawing to support:
Param: app
The Cesium Viewer or application context.
Param: options
Param: options.points
Optional initial list of points.
Param: options.maxPoints
(Optional) maximum allowed vertices.
Param: options.pointColor
Color for the interactive points.
Param: options.lineColor
Color for the polyline.
Param: options.addPoint
Start with the first point added.
Param: options.onMoveCallback
Fired when a point is moved.
Param: options.onSetCallback
Fired when a point is set.
Example