Here ya go...
var viewer = new Cesium.Viewer('cesiumContainer');
var countries = [{name:'Afghanistan',position: new Cesium.Cartesian3.fromDegrees(33.835342, 66.082004)},
{name:'Albania',position: new Cesium.Cartesian3.fromDegrees(20.174305, 41.167381)},
{name:'Algeria',position: new Cesium.Cartesian3.fromDegrees(2.677619, 28.131878)},
{name:'American Samoa',position: new Cesium.Cartesian3.fromDegrees(-170.729096, -14.301841)},
{name:'Angola',position: new Cesium.Cartesian3.fromDegrees(17.479600, -12.474423)},
{name:'Anguilla',position: new Cesium.Cartesian3.fromDegrees(-63.049084, 18.221567)},
{name:'Antarctica',position: new Cesium.Cartesian3.fromDegrees(-133.412676, -83.063869)},
{name:'Antigua And Barbuda',position: new Cesium.Cartesian3.fromDegrees(-61.794482, 17.081521)}];
function addLabels() {
for (var i = 0,len = countries.length; i < len; i++) {
var temp = {
id: countries[i].name,
name: countries[i].name,
position: countries[i].position,
label: {
text: countries[i].name,
font: '18px Verdana, sans-serif',
translucencyByDistance: new Cesium.NearFarScalar(1.5e7, 100000, 2.5e7, 0)
}
};
viewer.entities.add(temp);
}
}
addLabels();
setTimeout(function() {
console.log('Clearing');
viewer.dataSources.removeAll();
viewer.entities.removeAll();
viewer.scene.primitives.removeAll();
},3000);
setTimeout(function() {
console.log('Reinserting');
addLabels();
},6000);