For user drawings, which includes lines and/or a polygon
Object with the following properties:
If true, user can click on first point to close the line, turning it into a polygon.
Whether the first and last point in the user drawing are the same
Whether to interpret user clicks as drawing
Text that appears at the top of the dialog when drawmode is active.
Callback that occurs on clean up, i.e. when drawing is done or cancelled.
Callback that occurs when the dialog is redrawn, to add additional information to dialog.
Callback that occurs when point is clicked (may be added or removed). Function takes a CustomDataSource which is a list of PointEntities.
Callback that occurs when point is moved. Function takes a CustomDataSource which is a list of PointEntities.
Storage for line that connects the points, and polygon if the first and last point are the same
Storage for points that will be drawn
Polygon that will be drawn if the user drawing is a closed shape
Instance of Terria
SVG element for point drawn when user clicks. http://stackoverflow.com/questions/24869733/how-to-draw-custom-dynamic-billboards-in-cesium-js
Start interpreting user clicks as placing or removing points.