Optional
id_key: string = 'UUID'Tracks locked state (custom).
Raw input object (feature/entity/primitive).
Stores previous color before highlighting.
Feature marked as currently picked.
Is the feature interactively selectable.
Main visual color of the feature.
Set the current color (for highlight or visual change).
Access the main Cesium/scene content portion for this feature.
For Entities, access the low-level primitive (polygon, polyline, point).
Main identifier for the feature (object or ID).
Status of 'reactive' for this feature (if present).
Show or hide the visual feature (all supported types).
Set show/hide state of the feature.
Detect the feature type for Cesium/scene abstraction.
Universal feature UUID getter (from property or fallback).
Revert to the previous (stored) color, if available.
Colorize the feature (temporary highlight).
Color to apply.
Optional
keep: boolean = trueKeep the original color for restoring.
Retrieve a dynamic property from the underlying object.
Feature – Abstracts and normalizes access to various Cesium/Scene feature types (Cesium3DTileFeature, Primitive, Entity).
Provides unified API for identifier, type, color, show/hide, selectability, and dynamic property handling. Supports colorizing and clearing highlights for all supported entity types. Useful for consistent layer, selection, or property editing logic regardless of underlying Cesium/scene primitive type.
Param: obj
The underlying Cesium or custom feature object (entity, primitive, or 3D tile feature).
Param: id_key
The property name used as primary identifier.
Method
getProperty(property) - Gets a dynamic property value, abstraction over Cesium feature types.
Method
colorize(color, keep=true) - Temporarily set feature highlight color, optionally keeping previous.
Method
clearColor() - Restore to the previous color.
Example