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.
- 继承自:
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 |
返回值:
getColor(result) → Color
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.
