Hi guys
I am very new to cesium and am feeling confused about how to refresh my cesium datasource positions on the screen when my czml file entity positions update on the server every five minutes or so. I could not see a datasource refresh function. Any guidance would be greatly appreciated.
My czml contents and the code where I add it as a datasource are shown below.
var graderDataSource = new Cesium.CzmlDataSource(‘Grader’);
viewer.dataSources.add(graderDataSource.process(’./data/FMEMachinePositions/GraderPositions.czml’,{“sourceUri”:"./data/FMEMachinePositions/GraderPositions.czml"}));
[
{
“id”:“document”,
“version”:“1.0”,
“clock” : {
“currentTime” : “2016-07-19T02:00:00Z”,
“multiplier” : 1,
“step” : “SYSTEM_CLOCK_MULTIPLIER”
}
},
{
“id”:“Graders”,
“name”:“Graders”,
“description”:“List of Graders”
},
{
“id”:“GRD103”,
“name”:“GRD103”,
“parent”:“Graders”,
“description”:“
Site | grm |
class | Grader |
Equipment Type | Caterpillar 24H |
Team | GRM Coal |
“availability”:“2012-06-20T16:00:00Z/2016-08-20T16:02:00Z”,
“position”:{
“cartographicDegrees”:[147.952311678178,-21.7352916048272,300]
},
“billboard”:{
“horizontalOrigin”:“CENTER”,
“image”:"./icons/cat_scraper.png",
“scale”:0.3,
“show”:[
{
“boolean”:true
}
],
“verticalOrigin”:“CENTER”
}
},
{
“id”:“GRD104”,
“name”:“GRD104”,
“parent”:“Graders”,
“description”:“
Site | grm |
class | Grader |
Equipment Type | Caterpillar 24H |
Team | GRM Coal |
“availability”:“2012-06-20T16:00:00Z/2016-08-20T16:02:00Z”,
“position”:{
“cartographicDegrees”:[147.952311678178,-21.9,300]
},
“billboard”:{
“horizontalOrigin”:“CENTER”,
“image”:"./icons/cat_scraper.png",
“scale”:0.3,
“show”:[
{
“boolean”:true
}
],
“verticalOrigin”:“CENTER”
}
},
{
“id”:“GRD105”,
“name”:“GRD105”,
“parent”:“Graders”,
“description”:“
Site | grm |
class | Grader |
Equipment Type | Caterpillar 24H |
Team | GRM Coal |
“availability”:“2012-06-20T16:00:00Z/2016-08-20T16:02:00Z”,
“position”:{
“cartographicDegrees”:[147.5,-21.7352916048272,300]
},
“billboard”:{
“horizontalOrigin”:“CENTER”,
“image”:"./icons/cat_scraper.png",
“scale”:0.3,
“show”:[
{
“boolean”:true
}
],
“verticalOrigin”:“CENTER”
}
}
]