BufferPoint

open external class BufferPoint : BufferPrimitive(source)

View bound to the underlying buffer data of a BufferPointCollection.

BufferPoint instances are flyweights: a single BufferPoint instance can be temporarily bound to any conceptual "point" in a BufferPointCollection, allowing very large collections to be iterated and updated with a minimal memory footprint.

Represented as one (1) position.

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Feature ID associated with the primitive; not required to be unique.

Link copied to clipboard
var show: JsAny

Whether primitive is shown.

Link copied to clipboard

Count of positions (vertices) in this primitive. Always 1.

Functions

Link copied to clipboard
fun getPosition(result: Cartesian3? = definedExternally): Cartesian3

Gets the position of this point.

Link copied to clipboard
fun setPosition(position: Cartesian3)

Sets the position of this point.

Link copied to clipboard
open override fun toJSON(): JsAny

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