var viewer=ysc.createNormalCesium("cesiumContainer",{ });
var lon=117.286419;
var lat=31.864436;
ysc.addCircleRipple(viewer,{ //默认只绘制两个圆圈叠加 如遇绘制多个,请自行源码内添加。
id:"111",
lon:lon,
lat:lat,
height:0,
maxR:3000,
minR:0,//最好为0
deviationR:20,//差值 差值也大 速度越快
eachInterval:1000,//两个圈的时间间隔
imageUrl:"../plugins/ysc/images/redCircle2.png"
});
//如果添加中心线的话:
viewer.entities.add({
name:"",
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
lon,lat,0,
lon,lat, 5000,]
),
width: 4,
material : new Cesium.PolylineGlowMaterialProperty({ //发光线
glowPower : 0.1,
color : Cesium.Color.RED
})
}
});
viewer.zoomTo(viewer.entities);
原文链接:https://blog.csdn.net/Chou_Junn/article/details/91062723