BufferPolyline

View bound to the underlying buffer data of a BufferPolylineCollection.

BufferPolyline instances are flyweights: a single BufferPolyline instance can be temporarily bound to any conceptual "polyline" in a BufferPolylineCollection, allowing very large collections to be 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.

参考:

继承

成员(属性)

Feature ID associated with the primitive; not required to be unique.
继承自:
Whether primitive is shown.
继承自:

readonly vertexCount : number

Count of positions (vertices) in this polyline, number of VEC3 elements.
Width of polyline, 0–255px.

方法

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

Copies data from source polyline to result. If the result polyline is not new (the last polyline in the collection) then source and result polylines must have the same vertex counts.
参数名称 类型 描述信息
polyline BufferPolyline
result BufferPolyline
返回值:
Returns the color of primitive.
参数名称 类型 描述信息
result Color
返回值:
继承自:
Returns an array view of this polyline's vertex positions. If 'result' argument is given, vertex positions are written to that array and returned. Otherwise, returns an ArrayView on collection memory — changes to this array will not trigger render updates, which requires `.setPositions()`.
参数名称 类型 描述信息
result Float64Array 可选 return {Float64Array}
Updates the color of primitive.
参数名称 类型 描述信息
color Color
继承自:
参数名称 类型 描述信息
positions Float64Array
Returns a JSON-serializable object representing the polyline. This encoding is not memory-efficient, and should generally be used for debugging and testing.
返回值:
JSON-serializable object.
继承自: