Hi,
I would like to draw a dynamically updating path with Cesium using CZML. I currently have a working solution with a dynamically updating point.
I am trying to implement a solution using a polylineCollection and adding polylines to it (code included below).
Where am I going wrong with this?
Thanks,
Kris
//--------------------------------------------------
// CZML packet for one satellite tracked position
// Send as a path.
//--------------------------------------------------
function createMsg1()
{
var entity = {
"id" : coordinates[0],
"description" : animalName + ', tag ID: ' + coordinates[0] + '\n',
"availability" : dateTime_start + '/' + dateTime_end,
"polylineCollection" : {
"polyline" : {
"positions" : {
"cartographicDegrees" : [
coordinates[3], coordinates[4], coordinates[5]
]
},
"show" : true,
"width" : 2,
"resolution" : 60,
"material" : {
"solidColor" : {
"color" : {
"rgba" : thisTagColour
}
}
}
}
}
};
return JSON.stringify(entity);
}