Two polylines are in a czml, but only the second polyline is shown

Josef,

Each CzmlDataSource represents a single CZML document and should contain a single “document” packet with optional clock and each entity must have a unique id (or no id in which case Cesium will supply one. Your CZML string looks like two documents, but is treated as one. This causes the first instances of point and path to be replaced by the second.

Scott

Hello Scott,
thank you for your information.
I understand but I wonder. I used as "template":


This Sandcastle example showing multiple polylines works excellent, but my imitation does not work as expected.

Josef

Each of the entities in the example has a unique id: redLine, blueLine, orangeLine, purpleLine, and dashedLine. Both or your “line” entities have the id “path”. Likewise, your “point” entities have the id “point”.

Scott

Each of the entities in the example has a unique id:

Thank you very much, Scott,
it is the essential information.

So these codes work properly:


Josef

I’m glad you have it working!

Scott