Hi, All,
I am going to receive czml by package, like document described here,https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-Structure, "EventSource and Streaming". I tried to use CzmlDatasource.load() to load package I created on server. But nothing be shown. Is there any example to show how to handle czml package?
Assuming everything else is configured correctly and all you are trying to do is process the packets as they come in, use CzmlDataSource.process instead of load. load throws away existing data while process adds to any data already loaded.
We definitely want to simplify this in the future by adding NetworkLink style support similar to what is in KML.
Could you provide an simple example? The parameters of processPacketData() don't document well. "propertyName", for instance. It's a String. But no example says what is it.
Let me clarify my question. The document, which introduces how to update object dynamically, seems out of date. Plz check out this link, "EventSource and Streaming" part ,https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-Structure. It said, put under czml data can update the position of object.
{
// ...
"someInterpolatableProperty": {
"epoch": "2012-04-30T12:00:00Z",
"cartesian": [
0.0, 1.0, 2.0, 3.0,
1.0, 4.0, 5.0, 6.0,
2.0, 7.0, 8.0, 9.0,
3.0, 10.0, 11.0, 12.0
],
"previousTime": -1.0,
"nextTime": 4.0
}
}
I failed. Then I read the code of "function processPositionProperty(object, propertyName, packetData, constrainedInterval, sourceUri);". There is no code process "previousTime" and "nextTime". Further more, I debugged this function when I call CzmlDataSource.process(). I found it returned with "propertyCreated = false;"
Could anybody provide a latest example for packet update?
Thanks a lot!