removeEntity
Delete a specific 3D entity from the CesiumJS globe using its unique entity ID to manage scene content.
Instructions
移除单个实体(通过 entityId)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityId | Yes | 要移除的实体ID |
Implementation Reference
- The core logic to remove an entity from the Cesium viewer.
export function removeEntity(viewer: Cesium.Viewer, entityId: string): boolean { const entity = viewer.entities.getById(entityId) if (!entity) return false return viewer.entities.remove(entity) } - Schema definition for the removeEntity parameters.
export interface RemoveEntityParams { entityId: string }