缓冲区分析

Buffer

const positions: Cesium.Cartesian3[] = [...];
const analyser = new Buffer({ type: BufferType.POLYLINE, distance: 500 });
analyser
.analyse(positions)
.then(resp => {
ds.entities.add({
polygon: {
hierarchy: new Cesium.PolygonHierarchy(resp),
material: Cesium.Color.fromCssColorString(state.color),
},
});
});

Constructors

Properties

Methods

Constructors

Properties

distance: number = 100

缓冲区距离

Buffer

type: BufferType = BufferType.POLYGON

缓冲区类型

Buffer

Methods

  • Parameters

    • positions: Cartesian3[]

    Returns Promise<Cartesian3[]>

    {(Promise<Cesium.Cartesian3[] | undefined>)}

    缓冲区分析

    Buffer

  • Returns void

    清除缓冲区

    Buffer

  • Parameters

    Returns void

    设置缓冲区配置

    Buffer