Particle Layer
Vector variable rendered as animated particle simulation layer
Example

Data Properties
See Data properties common for all layers.
Style Properties
See Style properties common for all layers.
numParticles
numParticlesType: number, optional
Default: 5000
Number of the particles. The greater number of particles, the denser particle trails.
maxAge
maxAgeType: number, optional
Default: 100
Max age of the particles in frames. The greater max age, the longer particle trails.
speedFactor
speedFactorType: number 0-1, optional
Default: 1
Speed factor of the particles. The greater speed factor, the longer particle trails.
width
widthType: number, optional
Default: 1
Width of the line. See LineLayer getWidth.
color
colorType: color [number, number, number, number?], optional
Default: [255, 255, 255]
Color of the line. See LineLayer getColor.
palette
paletteType: color palette text or array, optional
Palette used to interpolate values to colors.
Formats:
text (
string) - see Text format for detailsarray (
[number, PaletteColor][]) -PaletteColoris any object accepted by Chroma.js constructor
Last updated