The custom event name to listen for wind updates.
True once model and animations are available.
Dictionary of model attributes.
Model rotation matrix (settable with HPR or Matrix3).
DistanceDisplayCondition for this model (controls when it is shown).
Unique identifier for the model.
Minimum pixel size setting for the Cesium model.
ModelMatrix for model pose (Matrix4).
3D translation (Cartesian3) of model.
Per-axis scaling vector.
Update the model's glTF URL, reloading the model if needed.
Computes the 4x4 Cesium model matrix from position, rotation (as Matrix3), and scale. Used for initializing or updating the Cesium Model.
Plays a model animation, optionally exclusive (removes previous), with loop and multiplier.
Animation index (0-based).
Optional
loop: ModelAnimationLoop = ModelAnimationLoop.REPEATAnimation loop mode.
Optional
multiplier: number = 1Speed multiplier.
Optional
exclusive: boolean = trueRemove all other animations first.
Prepares the infoBox HTML description for the Cesium Model based on this.properties.
A 3D windsock visualization class, extending ModelWrapper, for displaying animated wind direction and speed in the Cesium scene. Dynamically updates its orientation and animation state in response to custom wind events tied to its ID.
${id}-wind
).Export
Windsock
Param: app
The main Cesium app context.
Param: options
Windsock configuration options.
Param: options.id
Unique windsock identifier.
Param: options.url
URL/path to the windsock model (e.g., .glb).
Param: options.position
Position of the windsock.
Param: options.rotation
Initial rotation matrix for the windsock.
Param: options.scale
Model scale vector.
Param: options.minimumPixelSize
Minimum pixel size for rendering.
Param: options.distanceDisplayCondition
Cesium DistanceDisplayCondition.
Param: options.properties
Additional key-value properties for display/inspection.
Example