/**
* 泛光线
*/
const addPolylineGlow = function(options){
let {
wkt,
properties = {},
layerId = 'polylineLayer',
dialogId,
strokeColor = 'rgba(255,0,0,1)',
strokeWidth = 1,
id='泛光线',
flicker=false,
duration = 3,
changeColor = 'rgba(255,0,0,0.5)',
zIndex=0,
} = options || {};
// 没有图层则创建
let layerArr = this.viewer.dataSources.getByName(layerId)
let layer;
if (layerArr.length == 0) {
// 未初始化过图层
const dataSource = new Cesium.CustomDataSource(layerId);
this.viewer.dataSources.add(dataSource);
layer = dataSource;
}els
08-29
548
07-12
721
01-20