HeatmapLayer class final
A heatmap.
Constructors
-
HeatmapLayer.new({required String id, Visibility? visibility, List<
Object> ? visibilityExpression, List<Object> ? filter, double? minZoom, double? maxZoom, String? slot, required String sourceId, String? sourceLayer, int? heatmapColor, List<Object> ? heatmapColorExpression, double? heatmapIntensity, List<Object> ? heatmapIntensityExpression, double? heatmapOpacity, List<Object> ? heatmapOpacityExpression, double? heatmapRadius, List<Object> ? heatmapRadiusExpression, double? heatmapWeight, List<Object> ? heatmapWeightExpression})
Properties
-
filter
↔ List<
Object> ? -
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
- heatmapColor ↔ int?
-
Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses
["heatmap-density"]as input. Default value: ["interpolate","linear","heatmap-density",0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"].getter/setter pair -
heatmapColorExpression
↔ List<
Object> ? -
Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses
["heatmap-density"]as input. Default value: ["interpolate","linear","heatmap-density",0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"].getter/setter pair - heatmapIntensity ↔ double?
-
Similar to
heatmap-weightbut controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level. Default value: 1. Minimum value: 0.getter/setter pair -
heatmapIntensityExpression
↔ List<
Object> ? -
Similar to
heatmap-weightbut controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level. Default value: 1. Minimum value: 0.getter/setter pair - heatmapOpacity ↔ double?
-
The global opacity at which the heatmap layer will be drawn.
Default value: 1. Value range:
0, 1getter/setter pair -
heatmapOpacityExpression
↔ List<
Object> ? -
The global opacity at which the heatmap layer will be drawn.
Default value: 1. Value range:
0, 1getter/setter pair - heatmapRadius ↔ double?
-
Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
queryRenderedFeatureson heatmap layers will return points within this radius. Default value: 30. Minimum value: 1. The unit of heatmapRadius is in pixels.getter/setter pair -
heatmapRadiusExpression
↔ List<
Object> ? -
Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
queryRenderedFeatureson heatmap layers will return points within this radius. Default value: 30. Minimum value: 1. The unit of heatmapRadius is in pixels.getter/setter pair - heatmapWeight ↔ double?
-
A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.
Default value: 1. Minimum value: 0.
getter/setter pair
-
heatmapWeightExpression
↔ List<
Object> ? -
A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.
Default value: 1. Minimum value: 0.
getter/setter pair
- id ↔ String
-
The ID of the Layer.
getter/setter pairinherited
- maxZoom ↔ double?
-
Maximum zoom level. At zoom levels equal to or greater than this, the
layer is hidden. Range: 0 to 24.
getter/setter pairinherited
- minZoom ↔ double?
-
Minimum zoom level. At zoom levels less than this, the layer is hidden.
Range: 0 to 24.
getter/setter pairinherited
- 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, the layer is placed at that slot's 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, expressed as a style expression.
getter/setter pairinherited
Methods
-
getType(
) → String -
Returns the layer's type as a String (e.g. "fill", "line").
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) → HeatmapLayer