小编Cha*_*Raj的帖子

删除cesium js中的Polyline

如何删除 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

6
推荐指数
1
解决办法
4578
查看次数

标签 统计

cesiumjs ×1