Bootstrap

Ceisum实时获取后台数据 实时更新实体位置信息

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

infoBox : false,

selectionIndicator : false,

shadows : true,

shouldAnimate : true

});

var positions = [];

var poly = undefined;

var entityArr=[];

var PolyLinePrimitive = (function(){

function _(positions){

this.options = {

polyline : {

show : true,

positions : [],

material : Cesium.Color.CORNFLOWERBLUE 《大厂前端面试题解析+Web核心总结学习笔记+企业项目实战源码+最新高清讲解视频》无偿开源 徽信搜索公众号【编程进阶路】 ,

width : 5,

arcType : Cesium.ArcType.RHUMB,

}

};

this.positions = positions;

this._init();

}

_.prototype._init = function(){

var _self = this;

var _update = function(){

return _self.positions;

};

//实时更新polyline.positions

t

;