BufferPolylineMaterial

BufferPolyline 的材质描述。

BufferPolylineMaterial 对象是可打包的,在调用 BufferPolyline#setMaterial 时存储。之后对材质的修改不会影响折线,直到再次调用 setMaterial()。

new Cesium.BufferPolylineMaterial(options)

Name Type Description
options BufferPolylineMaterialOptions optional
Experimental

此功能尚未最终确定,可能会在不遵循 Cesium 标准弃用策略的情况下发生变更。

Extends

Members

填充颜色。
Inherited From:
轮廓线颜色。
Inherited From:
轮廓线宽度,0-255 像素。
Inherited From:
折线宽度,0–255 像素。

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:
返回一个表示材质的可 JSON 序列化对象。此编码方式不节省内存,通常仅用于调试和测试。
Returns:
可 JSON 序列化的对象。
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。