Singleton constructor. Returns existing instance if already created.
Required/precondition states.
States that are deactivated when this state activates.
Name/identifier for the state.
States that should be restored when this state ends.
Activates the information selection mode by setting appropriate handlers and enabling selection.
The main application instance.
Deactivates information mode, clearing handler states and UI, and disabling selection.
Always true.
Disables selection/inspection interactions.
Enables selection/inspection interactions.
InformationState – App state for enabling interactive information lookup or selection mode in a Cesium/3D viewer.
Ensures singleton pattern: only one
InformationState
active at a time. Configures the application to allow users to select, inspect, or query objects for more information. Sets or clears theselectionActive
flag in the main handler to control interaction flow.Static
instance - Singleton instance.
Example