Drawing a polyline from a set of points


I have a set of points in the format (Lat/Lon/Alt). I want to connect them with a series of straight-line segments connecting the points.
Could someone share a code snippet that illustrates this ?


Hi Srinath,

You can use a polyline and pass the points in as its positions. Here is an example (the line is clamped to ground in the example but the implementation is the same): Cesium Sandcastle.

Here is the polyline API doc: Polyline - Cesium Documentation