Hello,
Is it possible to set per position height for polylines in czml with cesium world terrain enabled. It is possible without the terrain enabled. here is my code. Thank you.
var czml = [
{
id: “document”,
name: “CZML Geometries: Polyline”,
version: “1.0”,
},
{
id: “1”,
name: " red line",
polyline: {
positions: {
cartographicDegrees: [79.99003238, 6.87834315, 100, 79.9833608, 6.8813874, 0],
},
material: {
solidColor: {
color: {
rgba: [255, 0, 0, 255],
},
},
},
perPositionHeight: true,
width: 1,
relativeToGround: true
},
}
];
var viewer = new Cesium.Viewer(“cesiumContainer”);
var dataSourcePromise = Cesium.CzmlDataSource.load(czml);
viewer.dataSources.add(dataSourcePromise);
viewer.zoomTo(dataSourcePromise);