1. A concise explanation of the problem you’re experiencing.
hi. This is my first time to ask questions at this group. Thank you for your contribution to the Cesium project.
i want to draw polyline with two points. How to draw it with one point follow the terrain surface(without elevation), and the other point has elevation.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
var fieldPath = viewer.entities.add({
name : uav.uavNum + ' view field path',
polyline : {
positions : new Cesium.CallbackProperty(function() {
return [uavUpdateInfo[uav.uavNum]['pos'], viewFieldGlobalPositions[uav.uavNum]]
}, false),
material : Cesium.Color.BLUE.withAlpha(0.5),
outline : false,
width: 2,
outlineColor : Cesium.Color.BLACK,
granularity: Cesium.Math.toRadians(0.5),
}
});
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
uav emits the laser at about 2km above the terrain, i want to draw a line from uav to the emit center(terrain surface)
4. The Cesium version you’re using, your operating system and browser.
cesium 1.48. win7. Chrome