View bound to the underlying buffer data of a BufferPolylineCollection.

BufferPolyline instances are flyweights: 单个缓冲线实例可暂时与任何概念结合 在缓冲Polyline Collection中“聚合物”允许非常大的集合 iterated and updated with a minimal memory footprint.

Represented as two (2) or more positions.

new Cesium.BufferPolyline()

Experimental

This feature is not final and is subject to change without Cesium's standard deprecation policy.

See:

Extends

Members

featureId : number

与原始人相关的特征ID;不需要独具特色.
Inherited From:

show : boolean

是否显示原始 .
Inherited From:

readonly vertexCount : number

计算此多线中的位置(vertices),数量为 VEC3 元素.

width : number

0–255px的多线宽度.

Methods

static Cesium.BufferPolyline.clone(polyline, result)BufferPolyline

从源多线到结果的复制数据。 如果结果为多线 new (the last polyline in the collection) then source and result polylines 必须有相同的顶点数.
Name Type Description
polyline BufferPolyline
result BufferPolyline
Returns:

getColor(result)Color

返回原始颜色.
Name Type Description
result Color
Returns:
Inherited From:

getPositions(result)

返回此多线顶点位置的数组视图 。 如果“ 结果 ” 参数,顶点位置会写到该数组并返回. 否则, 返回收藏内存上的 ArrayView —— 更改此数组 将不会触发渲染更新, 这需要 `.setPositions()` .
Name Type Description
result Float64Array optional return {Float64Array}

setColor(color)

更新原始颜色.
Name Type Description
color Color
Inherited From:

setPositions(positions)

Name Type Description
positions Float64Array

toJSON()Object

返回代表多线的 NT++0 可序列大小的对象。 此编码 没有内存效率,一般应用于调试和 testing.
Returns:
JSON-serializable object.
Inherited From:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.