BufferPolylineMaterial

Material description for a BufferPolyline.

BufferPolylineMaterial objects are packable, stored when calling BufferPolyline#setMaterial. Subsequent changes to the material will not affect the polyline until setMaterial() is called again.

new Ditap.BufferPolylineMaterial(options)

Name Type Description
options BufferPolylineMaterialOptions optional
Experimental

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

Extends

Members

color : Color

Color of fill.
Inherited From:

outlineColor : Color

Color of outline.
Inherited From:

outlineWidth : number

Width of outline, 0-255px.
Inherited From:

width : number

Width of polyline, in the unit selected by BufferPolylineCollection#widthUnits.

Methods

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

Name Type Description
material BufferPolylineMaterial
view DataView
byteOffset number

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

Name Type Description
view DataView
byteOffset number
result BufferPolylineMaterial
Returns:

toJSON() → Object

Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.
Returns:
JSON-serializable object.