I have an entity with a position (fromDegrees lat,lng,height) and a billboard.
I want to be able to show a line that goes from the billboard to the ground (similar to how polylines if you set the option, show a line going from each point to the ground. What is the simplest way to do this or is this possible?
Hello,
You can accomplish this using a polyline with the option followSurface: false.
Here is a code example:
var viewer = new Cesium.Viewer(‘cesiumContainer’);
viewer.entities.add({
polyline : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights([-75, 43, 0,
-75, 43, 100]),
width : 3,
followSurface : false,
material : Cesium.Color.WHITE
}
});
viewer.zoomTo(viewer.entities);
``
Best,
Hannah