RasterParticleLayer class
Particle animation driven by textures such as wind maps.
Constructors
-
RasterParticleLayer({required String id, Visibility? visibility, List<
Object> ? visibilityExpression, List<Object> ? filter, double? minZoom, double? maxZoom, String? slot, required String sourceId, String? sourceLayer, String? rasterParticleArrayBand, List<Object> ? rasterParticleArrayBandExpression, int? rasterParticleColor, List<Object> ? rasterParticleColorExpression, double? rasterParticleCount, List<Object> ? rasterParticleCountExpression, double? rasterParticleFadeOpacityFactor, List<Object> ? rasterParticleFadeOpacityFactorExpression, double? rasterParticleMaxSpeed, List<Object> ? rasterParticleMaxSpeedExpression, double? rasterParticleResetRateFactor, List<Object> ? rasterParticleResetRateFactorExpression, double? rasterParticleSpeedFactor, List<Object> ? rasterParticleSpeedFactorExpression})
Properties
-
filter
↔ List<
Object> ? -
An expression specifying conditions on source features.
Only features that match the filter are displayed.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The ID of the Layer.
getter/setter pairinherited
- maxZoom ↔ double?
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
- minZoom ↔ double?
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
- rasterParticleArrayBand ↔ String?
-
Displayed band of raster array source layer
getter/setter pair
-
rasterParticleArrayBandExpression
↔ List<
Object> ? -
Displayed band of raster array source layer
getter/setter pair
- rasterParticleColor ↔ int?
-
Defines a color map by which to colorize a raster particle layer, parameterized by the
["raster-particle-speed"]
expression and evaluated at 256 uniformly spaced steps over the range specified byraster-particle-max-speed
.getter/setter pair -
rasterParticleColorExpression
↔ List<
Object> ? -
Defines a color map by which to colorize a raster particle layer, parameterized by the
["raster-particle-speed"]
expression and evaluated at 256 uniformly spaced steps over the range specified byraster-particle-max-speed
.getter/setter pair - rasterParticleCount ↔ double?
-
Defines the amount of particles per tile.
Default value: 512. Minimum value: 1.
getter/setter pair
-
rasterParticleCountExpression
↔ List<
Object> ? -
Defines the amount of particles per tile.
Default value: 512. Minimum value: 1.
getter/setter pair
- rasterParticleFadeOpacityFactor ↔ double?
-
Defines defines the opacity coefficient applied to the faded particles in each frame. In practice, this property controls the length of the particle tail.
Default value: 0.98. Value range:
0, 1
getter/setter pair -
rasterParticleFadeOpacityFactorExpression
↔ List<
Object> ? -
Defines defines the opacity coefficient applied to the faded particles in each frame. In practice, this property controls the length of the particle tail.
Default value: 0.98. Value range:
0, 1
getter/setter pair - rasterParticleMaxSpeed ↔ double?
-
Defines the maximum speed for particles. Velocities with magnitudes equal to or exceeding this value are clamped to the max value.
Default value: 1. Minimum value: 1.
getter/setter pair
-
rasterParticleMaxSpeedExpression
↔ List<
Object> ? -
Defines the maximum speed for particles. Velocities with magnitudes equal to or exceeding this value are clamped to the max value.
Default value: 1. Minimum value: 1.
getter/setter pair
- rasterParticleResetRateFactor ↔ double?
-
Defines a coefficient for a time period at which particles will restart at a random position, to avoid degeneration (empty areas without particles).
Default value: 0.8. Value range:
0, 1
getter/setter pair -
rasterParticleResetRateFactorExpression
↔ List<
Object> ? -
Defines a coefficient for a time period at which particles will restart at a random position, to avoid degeneration (empty areas without particles).
Default value: 0.8. Value range:
0, 1
getter/setter pair - rasterParticleSpeedFactor ↔ double?
-
Defines a coefficient for the speed of particles’ motion.
Default value: 0.2. Value range:
0, 1
getter/setter pair -
rasterParticleSpeedFactorExpression
↔ List<
Object> ? -
Defines a coefficient for the speed of particles’ motion.
Default value: 0.2. Value range:
0, 1
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot ↔ String?
-
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
getter/setter pairinherited
- sourceId ↔ String
-
The id of the source.
getter/setter pair
- sourceLayer ↔ String?
-
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
getter/setter pair
- visibility ↔ Visibility?
-
The visibility of the layer.
getter/setter pairinherited
-
visibilityExpression
↔ List<
Object> ? -
The visibility of the layer.
getter/setter pairinherited
Methods
-
getType(
) → String -
Get the type of current layer as a String.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
String properties) → RasterParticleLayer