Timeline .addTrack method?

Hello,

I wondered whether any documentation is available for the timeline.addTrack method, please?

I am trying to add another track and although there is a hint of it at the bottom of the screen, I need to raise the default timeline and track to make the latter visible.

viewer.timeline.addTrack(new Cesium.TimeInterval(
{
start : Cesium.JulianDate.fromIso8601(‘2005-11-22T00:30:36.750Z’),
stop : Cesium.JulianDate.fromIso8601(‘2005-11-22T00:58:46.750Z’)
}
),
30, // Height
Cesium.Color.RED,
new Cesium.Color(0.55, 0.55, 0.55, 0.25)
);

``

Is it the case that the default timeline has some sort of

?

Thanks,

Hugh

Hi Hugh,

The Timeline.addTrack function is not part of the public API, so we can’t guarantee it’s usage will stay consistent from release to release.

Look at the source code, particularly Timeline._makeTicks, to see how the tracks are added and styled. You’ll probably need to modify the CSS to get the effect you’re looking to accomplish.

Thanks,

Gabby

Thanks Gabby. :wink: