new CesiumDragPoints(terria, pointMovedCallback)
For letting user drag existing points in Cesium ViewerModes only.
The Terria instance.
A function that is called when a point is moved.
List of entities that can be dragged, which is populated with user-created points only.
Whether user is currently dragging point.
Callback that occurs when point is moved. Function takes a CustomDataSource which is a list of PointEntities.
For determining whether a drag has just occurred, to avoid deleting a point at the end of the drag.
A clean up function to call when destroying the object.
Set up the drag point helper so that attempting to drag a point will move the point.
Update the list of draggable objects with a new list of entities that are able to be dragged. We are only interested in entities that the user has drawn.
Entities that user has drawn on the map.