如何删除 cesiumjs 中的折线,
var p = this.viewer.entities.add({
polyline: {
material: new Cesium.PolylineGlowMaterialProperty({
glowPower: 0.7,
color: Cesium.Color.ORANGE.withAlpha(0.7)
}),
positions: Cesium.Cartesian3.fromDegreesArrayHeights(points),
width: 15,
}
});
Run Code Online (Sandbox Code Playgroud)
我使用了Entity.removeAll(),但它正在从铯容器中删除整个数据(包括模型等)。我只想删除折线。
cesiumjs ×1