BufferPolylineMaterial
Cesium v1.147 · 中文

BufferPolyline 的材质描述。

BufferPolylineMaterial objects are packable, stored when calling BufferPolyline#setMaterial. Subsequent changes to the 折线宽度,以 BufferPolylineCollection#widthUnits 选择的单位为准。

new Cesium.BufferPolylineMaterial(options)

Name Type Description
options BufferPolylineMaterialOptions optional
Experimental

This 返回一个可序列化为 JSON 的对象,代表材质信息。这种编码方式

Extends

Members

轮廓宽度,范围为 0-255px。
Inherited From:
填充颜色。
Inherited From:
轮廓宽度,范围为 0-255px。
Inherited From:
Width of polyline, in the unit selected by BufferPolylineCollection#widthUnits.

Methods

static Cesium.BufferPolylineMaterial.pack(material, view, byteOffset)

Name Type Description
material BufferPolylineMaterial
view DataView
byteOffset number

static Cesium.BufferPolylineMaterial.unpack(view, byteOffset, result) → BufferPolylineMaterial

Name Type Description
view DataView
byteOffset number
result BufferPolylineMaterial
Returns:
对象。 is not memory-efficient, and should generally be used for debugging and testing.
Returns:
JSON-serializable object.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.