Hello there,
I have two questions,
1. - Is it possible to create two objects of the same type from CZML? If I want to define multiple ellipses from CZML, is this possible?
The following is a snippet of CZML code that is used to create and display an ellipse (this is within the CZML that defines a vehicle so it will follow its position). This works fine for a single ellipse, but if I were to try to create a second ellipse this way, errors are thrown for having the same property twice (ellipse).
"ellipse" :
{
"bearing" :
{
"epoch" : "2012-08-04T16:00:00Z",
"number" : [0, 0, 3894.996219574019, 6.28318531]
},
"semiMajorAxis" :
{
"epoch" : "2012-08-04T16:00:00Z",
"number" : [0, 30000, 3894.996219574019, 10000]
},
"semiMinorAxis" :
{
"epoch" : "2012-08-04T16:00:00Z",
"number" : [0, 10000, 3894.996219574019, 30000]
}
},
"polyline" :
{
"color" :
[{
"interval" : "2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"rgba" : [255, 255, 0, 255]
}]
},
"polygon" :
{
"color" :
[{
"interval" : "2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"rgba" : [255, 255, 0, 255]
}]
}
2.- Displaying an ellipsoid via CZML.
I am using the following in CZML to try to display an ellipsoid that follows a vehicle in the same way that the ellipse would. Note: The Position property is defined for the vehicle, but the "Orientation" property is not. I am under the impression that the "Orientation" property only affects geometry and not the actual vehicle. Is this required to display the ellipsoid? And if so, how is the "Orientation" property implemented? The documentation for the "axes" and "unitQuaternion" are TODO's. https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-Content
"ellipsoid" :
{
"show" :
[{
"interval" : "2012-08-04T16:00:00Z/2012-08-04T18:00:00Z",
"boolean" : true
}],
"radii" :
{
"cartesian" : [40000, 40000, 40000]
},
"material" :
{
"solidColor" :
{
"color" :
{
"rgba" : [255, 255, 0, 255]
}
}
}
},