I figures out to extend the Czml writer library to extend czml with a custom property like this:
{
“id”:“Vehicle”,
“availability”:“2015-08-13T14:57:56Z/2015-08-13T15:48:45Z”,
“feed”:[
{
“interval”:“2015-08-13T14:56:49Z/2015-08-13T15:00:32Z”,
“name”:“VDO_0037.avi”
},
{
“interval”:“2015-08-13T15:00:32Z/2015-08-13T15:04:23Z”,
“name”:“VDO_0038.avi”
}, …
],
//rest of path,position properties ect.
}
``
In javascript I can load the czml like this:
var czmlDataSource = new Cesium.CzmlDataSource();
czmlDataSource.load(czml, 'Built-in CZML');
console.log(czmlDataSource);
var vehicle = czmlDataSource.entities.getById("Vehicle");
``
I tried he following:
console.log(vehicle);
console.log(vehicle["feed"]);
console.log(vehicle.propertyNames);
``
but do not seem to be able to find my custom data.
I also found var feeds = new Cesium.TimeIntervalCollectionProperty(); and can add the interval properties myself, but then I would need to parse the czml again, so I am wondering if there are extension points to make the czmldatasource accept my custom data field.