GroundPrimitive
GroundPrimitive is a ground primitive in the PrimitiveCollection.
Primitive is a low layer API for geographical visualization. Entity is more recommended unless performance issues.
- Cesium element: GroundPrimitive
- Example: GroundPrimitive
Availability
Inside Viewer, CesiumWidget, or GroundPrimitiveCollection component. If this component is inside GroundPrimitiveCollection component, a ground primitive object will be attached to the ground primitive collection of the scene. Otherwise, a primitive object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.
Properties
Cesium properties
| Property | Type | Description |
|---|---|---|
| show | boolean | |
| debugShowBoundingVolume | boolean | |
| classificationType | ClassificationType | |
| debugShowShadowVolume | boolean | |
| appearance | Appearance |
Cesium read-only properties
| Property | Type | Description |
|---|---|---|
| geometryInstances | any[] | GeometryInstance | |
| vertexCacheOptimize | boolean | |
| interleave | boolean | |
| releaseGeometryInstances | boolean | |
| allowPicking | boolean | |
| asynchronous | boolean | |
| compressVertices | boolean |
Cesium events
N/A
Other properties
| Property | Type | Description |
|---|---|---|
| onClick | (movement: CesiumMovementEvent, target: T) => void | |
| onDoubleClick | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseDown | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseUp | (movement: CesiumMovementEvent, target: T) => void | |
| onMiddleClick | (movement: CesiumMovementEvent, target: T) => void | |
| onMiddleDown | (movement: CesiumMovementEvent, target: T) => void | |
| onMiddleUp | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseMove | (movement: CesiumMovementEvent, target: T) => void | |
| onPinchEnd | (movement: CesiumMovementEvent, target: T) => void | |
| onPinchMove | (movement: CesiumMovementEvent, target: T) => void | |
| onPinchStart | (movement: CesiumMovementEvent, target: T) => void | |
| onRightClick | (movement: CesiumMovementEvent, target: T) => void | |
| onRightDown | (movement: CesiumMovementEvent, target: T) => void | |
| onRightUp | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseEnter | (movement: CesiumMovementEvent, target: T) => void | |
| onMouseLeave | (movement: CesiumMovementEvent, target: T) => void | |
| onReady | (primitive: GroundPrimitive) => void | Calls when Primitive#readyPromise is fullfilled |