Problem with CZML

Dear Cesium users and team!

I send to Cesium client this kind of CZML packet stream:

#js {:id document, :version 1.0, :clock #js {:currentTime 2018-10-23T17:37:05Z}}

#js {:id Vela, :label #js {:scale 0, :pixelOffset #js {:cartesian2 #js [8 -8]}, :text Vela}, :billboard #js {:scaleByDistance #js {:nearFarScalar #js [0 2 7408 0]}, :heightReference RELATIVE_TO_GROUND, :verticalOrigin BOTTOM, :image http://localhost:4444/img/yacht.png}, :position #js {:cartographicDegrees #js [2018-10-23T17:37:05Z 6.039056590840714 62.438848537135875 2 2018-10-23T17:37:16Z 6.039623184494397 62.43869098476458 2]}}

#js {:id Bylina, :label #js {:scale 0, :pixelOffset #js {:cartesian2 #js [8 -8]}, :text Bylina}, :billboard #js {:scaleByDistance #js {:nearFarScalar #js [0 2 7408 0]}, :heightReference RELATIVE_TO_GROUND, :verticalOrigin BOTTOM, :image http://localhost:4444/img/yacht.png}, :position #js {:cartographicDegrees #js [2018-10-23T17:37:05Z 6.002586679909537 62.43297168216364 2 2018-10-23T17:37:16Z 6.003164697963509 62.432823374591436 2]}}

#js {:id m1, :label #js {:scale 0, :pixelOffset #js {:cartesian2 #js [8 -8]}, :text m1}, :billboard #js {:scaleByDistance #js {:nearFarScalar #js [0 2 7408 0]}, :heightReference RELATIVE_TO_GROUND, :verticalOrigin BOTTOM, :image http://localhost:4444/img/buoy3.png}, :position #js {:cartographicDegrees #js [2018-10-23T17:37:05Z 6.046833332379659 62.40466667811076 0 2018-10-23T17:37:16Z 6.046833332379659 62.40466667811076 0]}}

#js {:id document, :version 1.0, :clock #js {:currentTime 2018-10-23T17:37:16Z}}

#js {:id Vela, :label #js {:scale 0, :pixelOffset #js {:cartesian2 #js [8 -8]}, :text Vela}, :billboard #js {:scaleByDistance #js {:nearFarScalar #js [0 2 7408 0]}, :heightReference RELATIVE_TO_GROUND, :verticalOrigin BOTTOM, :image http://localhost:4444/img/yacht.png}, :position #js {:cartographicDegrees #js [2018-10-23T17:37:16Z 6.039623184494397 62.43869098476458 2 2018-10-23T17:37:27Z 6.040189772177805 62.43853343009501 2]}}

#js {:id Bylina, :label #js {:scale 0, :pixelOffset #js {:cartesian2 #js [8 -8]}, :text Bylina}, :billboard #js {:scaleByDistance #js {:nearFarScalar #js [0 2 7408 0]}, :heightReference RELATIVE_TO_GROUND, :verticalOrigin BOTTOM, :image http://localhost:4444/img/yacht.png}, :position #js {:cartographicDegrees #js [2018-10-23T17:37:16Z 6.003164697963509 62.432823374591436 2 2018-10-23T17:37:27Z 6.003742710285636 62.432675064627006 2]}}

#js {:id m1, :label #js {:scale 0, :pixelOffset #js {:cartesian2 #js [8 -8]}, :text m1}, :billboard #js {:scaleByDistance #js {:nearFarScalar #js [0 2 7408 0]}, :heightReference RELATIVE_TO_GROUND, :verticalOrigin BOTTOM, :image http://localhost:4444/img/buoy3.png}, :position #js {:cartographicDegrees #js [2018-10-23T17:37:16Z 6.046833332379659 62.40466667811076 0 2018-10-23T17:37:27Z 6.046833332379659 62.40466667811076 0]}}

#js {:id document, :version 1.0, :clock #js {:currentTime 2018-10-23T17:37:27Z}}

Object “m1” is motionless and displayed in Cesium client correctly.

Objects “Bylina” and “Vela” are moving as can be seen from a listing. In Cesium they do not move smoothly within time intervals between document packets, but move jumping from doc to doc (as I understand, Cesium use only one pair of coordinates from an array).

Please, help me to understand a cause of malfunction. Thanks in advance.

Sincerely,

Ru

Hey Ru,

If you define a list of coordinates, and an availability, it should interpolate smoothly. Here’s an example:

If it doesn’t work, it’ll help me a lot if you can recreate your issue in Sandcastle (and then click “share” to get a link and paste it here) that makes it easier for me to run it.

Thank you, Omar!

With your help I have found solution.

Sincerely,

Ru