onFinish
onFinishCallback(points, cancellationCallback, isSelfIntersect)
This callback function is called when the draw operation is complete, e.g., when the user right-clicks or long press for mobile.
Parameters
Name |
Type |
Description |
points |
Array of Cesium.Cartesian3 |
Array which represents the points drawn. |
cancellationCallback |
function |
A function to be executed which cancels the last added point. |
isSelfIntersect |
Boolean |
Determines whether the polyline crosses itself. |