Hey,
I would like to stop moving a mobile after reaching the end date. I tried several clock configurations, but at the end of a cycle, a new one systematically starts again.
I try this code in the Sandcastle example :
{
id: “document”,
name: “CZML Path”,
version: “1.0”,
clock: {
interval: “2012-08-04T10:00:00Z/2012-08-04T15:00:00Z”,
currentTime: “2012-08-04T10:00:00Z”,
startTime: “2012-08-04T10:00:00Z”,
stopTime: “2012-08-04T15:00:00Z”,
multiplier: 10,
clockRange: Cesium.ClockRange.LOOP_STOP
},
},
Hi there,
For CZML, I beleive the property name is just range
. See Clock · AnalyticalGraphicsInc/czml-writer Wiki · GitHub.
It is just range
as Gabby said but I’ll also note it should be the string version not the enum from Cesium.ClockRange
. So for your example it should be:
{
id: “document”,
name: “CZML Path”,
version: “1.0”,
clock: {
interval: “2012-08-04T10:00:00Z/2012-08-04T15:00:00Z”,
currentTime: “2012-08-04T10:00:00Z”,
startTime: “2012-08-04T10:00:00Z”,
stopTime: “2012-08-04T15:00:00Z”,
multiplier: 10,
range: "LOOP_STOP"
},
},
You can test this in that sandcastle you already linked
THANKS,
I hadn’t seen this difference between CZML and Cesium.Clock, it works with “CLAMPED”. The mobile disappears at the end, but that’s another problem.