一、简介
二、效果图
三、代码
1、 测地线
const redLine = viewer.entities.add({
name: "红线",
polyline: {
positions: Cesium.Cartesian3.fromDegreesArray([-75, 35, -125, 35]),
width: 5,
material: Cesium.Color.RED,
clampToGround: true,//贴地
},
});
2、罗盘线
const greenRhumbLine = viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArray([-75, 35, -125, 35]),
width: 5,
arcType: Cesium.ArcType.RHUMB,//沿着罗盘方位或斜航线的路径
material: Cesium.Color.GREEN,
},
});
3、发光线:PolylineGlowMaterialProperty
标签:const,Cartesian3,viewer,35,Entity,Polyline,之五,Cesium,polyline From: https://blog.csdn.net/weixin_43976807/article/details/143997990