Construct and/or get the singleton instance. If already created, returns the existing instance instead of creating a new one.
Main viewer object.
Layer collections/registry.
Optional
options: object = {}Settings to override or set, aligned to the full parameter/property list.
Layer collections for applying/tuning global settings.
Registered listeners for profile/setting changes.
Main application viewer (Cesium or similar).
Static
ProfilesNamed profile presets for low, medium, high, ultra quality/performance. Each profile is an object with the above settings, e.g., tileCacheSize, maximumScreenSpaceError, etc.
Applies key level-of-detail and error parameters from SettingsManager to a layer (except for POINTS). Propagates adaptive detail, error factor, and density configs to the Layer instance.
The target Layer to update.
Returns terrain and primitive depth bias values based on input (e.g., shadow map size). Used to tune Cesium rendering and shadow quality, depending on texture or shadow map resolution.
Usually shadow map size or resolution (e.g., 1024, 2048, or 4096).
An object with terrain
and primitive
bias values.
Updates all settings from a configuration object. Each entry in the config object is copied to the SettingsManager instance by property name. After update, dispatches a global 'settings-update' CustomEvent to notify listeners of changes.
A flat object with keys matching SettingsManager properties.
Updates all settings and options from a named profile string (e.g., 'low', 'high', 'ultra').
Loads the matching settings object from SettingsManager.Profiles, applies them via .update,
and dispatches a global profile-changed
CustomEvent on the window to inform other components.
The profile name (key) to load, such as "low"
, "medium"
, "high"
, "ultra"
.
SettingsManager – Singleton manager for global 3D scene, rendering, and resource/performance settings.
Stores, applies, and exposes all tunable performance and visual parameters for Cesium (or similar) applications: tile cache, screen-space error, post-processing, level of detail, and more. Provides high-level "profiles" for batch configuration and ensures only one instance exists at a time.
Static
Example