VectorPrimitive

Draws the primitives of a BufferPrimitiveCollection with a style held by the vector primitive. Several vector primitives may draw the same collection. Vector primitives are drawn when added to Scene#primitives.

abstract new Cesium.VectorPrimitive(options)

Name Type Description
options VectorPrimitiveOptions
Experimental

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

See:

Members

The primitives drawn by the vector primitive. The vector primitive does not own the collection; destroying it leaves the collection intact.
Whether the vector primitive is drawn.
Default Value: true

Methods

Destroys the GPU resources of the vector primitive. The collection is not destroyed.

isDestroyed() → boolean

Returns true if this object was destroyed; otherwise, false.
Returns:
True if this object was destroyed; otherwise, false.
Marks the visual properties as dirty, so per-primitive callbacks are evaluated again on the next frame. Callbacks are otherwise evaluated only when a primitive changes or a property is assigned, so call this after changing data that a callback reads.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.