webgl示例程序里线型demo其中黄色轨迹如何只执行一次 不循环播放
new Cesium.TimeIntervalCollection
var pointLineArray = [];
var entityArray = [];
for (var i = 0; i < length; ++i) {
var evt = new Cesium.Event();
var animationObj = {
type: 'time',
stepsRange: {
start: 0,
end: 300
},
trails: 30,
duration: 50,
event:evt
};
var lon = Cesium.Math.lerp(endLon, startLon, i / (length - 1));
entityArray[i] = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(lon, lat),
nameID:i,
availability : new Cesium.TimeIntervalCollection(null,animationObj),
billboard :{
image : './images/point.png',
width:32,
height:32,
color :new Cesium.Color(1, 1, 0, 1)
}
});
}