Hi
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 ?
Regards
Srinath
Hi
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 ?
Regards
Srinath
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