实现原理较为简单,不管是点动态效果还是实时轨迹都是用到了CallbackProperty方法
image : new Cesium.CallbackProperty(function(time){
var diff = Cesium.JulianDate.secondsDifference(Cesium.JulianDate.now(),startTime);
var v = parseInt(Math.floor(diff*1000)/speedtime)%10+1;
if(type==1){
return './images/light_blue_00000'+v+'.png';
}else{
return './images/purple ('+v+').png';
}
}, false),
同理,运用CallbackProperty动态更新position,实现点运动