Hi Rachel,
I ran this in your sandcastle app. If you let it run for an hour or so the browser will hang and
Eventually run out of memory on Chrome. I think it will fail quicker with Mozilla.
Link is above and I deleted the JS code and pasted in the below code.
Let me know what you think.
Thanks,
Carlo
var czml =
[
{
“id” : “document”,
“name” : “TEST”,
“version” : “1.0”
},
{
“id” : “trk1”,
“name” : “1 {477088000}”,
“position” : {“cartographicDegrees” : [-82.392379761,27.857116699,53.2013]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
},
“description”: " <table border=“1”><th colspan=“3”>TRACK
\Item
Value
Units
},
{
“id” : “trk2”,
“name” : “2 {477058800}”,
“position” : {“cartographicDegrees” : [-82.513336182,27.787147522,12.1227]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk3”,
“name” : “3 {366390000}”,
“position” : {“cartographicDegrees” : [-82.523002625,27.757831573,10.2413]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk4”,
“name” : “4 {367168230}”,
“position” : {“cartographicDegrees” : [-82.629875183,27.776863098,0.0922988]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk5”,
“name” : “5 {366967050}”,
“position” : {“cartographicDegrees” : [-82.558769226,27.633367538,22.9583]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk6”,
“name” : “6 {367003260}”,
“position” : {“cartographicDegrees” : [-82.559936523,27.634202957,22.5965]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk7”,
“name” : “7 {366341000}”,
“position” : {“cartographicDegrees” : [-82.574996948,27.685241699,10.0483]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk8”,
“name” : “8 {CARNIVAL INSPIRATION}”,
“position” : {“cartographicDegrees” : [-82.444549561,27.848119736,34.3424]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk9”,
“name” : “9 {636091540}”,
“position” : {“cartographicDegrees” : [-82.56124115,27.632991791,22.7631]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk10”,
“name” : “10 {367078740}”,
“position” : {“cartographicDegrees” : [-82.441169739,27.81936264,31.8315]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk11”,
“name” : “11 {367168440}”,
“position” : {“cartographicDegrees” : [-82.633415222,27.760282516,0.115857]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk12”,
“name” : “12 {567035000}”,
“position” : {“cartographicDegrees” : [-82.999794006,27.591011047,130.836]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk13”,
“name” : “13 {567308000}”,
“position” : {“cartographicDegrees” : [-82.428703308,27.907411575,51.4946]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},
{
“id” : “trk14”,
“name” : “14 {309319000}”,
“position” : {“cartographicDegrees” : [-82.41242981,27.797065735,39.4494]},
“point” :
{
“color”: {“rgba”:[255,255,255,255]},
“outlineColor”: {“rgba”:[255,0,0,255]},
“outlineWidth”: 4,
“pixelSize”: 2
}
},];
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var nIntervId = setInterval(updateTracks(),1000);
updateTracks();
function updateTracks()
{
viewer.dataSources.add(Cesium.CzmlDataSource.load(czml));
}