Type Alias WindLayerOptions
color?: RgbaColor;
colorMaxKph?: number;
colorMinKph?: number;
colorramp?: ColorRamp;
density?: number;
fadeFactor?: number;
fastColor?: RgbaColor;
fastIsLarger?: boolean;
fastSpeed?: number;
id?: string;
maxAmount?: number;
opacity?: number;
pixelRatio?: number;
refreshInterval?: number;
renderTrails?: boolean;
size?: number;
smooth?: boolean;
speed?: number;
}
Properties
Optionalcolor
OptionalcolorMaxKph
Wind speed (km/h) at or above which particles use fastColor.
Converted to m/s internally. Default: 144 (equivalent to 40 m/s, previous default ramp top).
OptionalcolorMinKph
Wind speed (km/h) at or below which particles use color. Must be >= 0.
Converted to m/s internally for the particle field. Default: 0.
Optionalcolorramp
Colormap to use
Optionaldensity
Number of particles visible per 1000 px^2. Default is 2.
OptionalfadeFactor
How much the particles fade over time.
Default value is 0.1.
OptionalfastColor
Color of the particle when moving "fast". RGBA 0-255. Defaults to color
OptionalfastIsLarger
If this is true, the particles gets slighly larger as they become faster.
Default: false
OptionalfastSpeed
What is considered "fast" (in px/sec) for coloring purposes. Only makes sense when fastColor is used.
Optionalid
ID of the layer
OptionalmaxAmount
Quantity of particles to be created. Default value is 128.
Has to be a power of 2 and at least 4.
The actual exact number will be particles * particles.
Try to keep this value as low as possible to optimize performance.
The number of actually visible particles is determined by density.
Optionalopacity
Opacity of the layer in [0, 1]
OptionalpixelRatio
Use more pixels to make particles more smooth (especially when tilted).
Defaults to 2 for normal displays and 1 for HiDPI displays.
OptionalrefreshInterval
Time interval (in milliseconds) how often the particles
are refreshed to avoid degradation.
Random 1/16 of the particles is always randomly reset.
Default value is 800.
OptionalrenderTrails
Whether or not the particles render trails.
Default: true
Optionalsize
Size of the particle. Defaults to 1.5
Optionalsmooth
Whether or not the colorramp shows interpolated colors
Optionalspeed
Speed factor of the particles. Defaults to 0.001
Color of the particle. RGBA 0-255. Defaults to
[255, 255, 255, 192]