HeatmapLayer class

A heatmap.

Inheritance

Constructors

HeatmapLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, required String sourceId, String? sourceLayer, int? heatmapColor, double? heatmapIntensity, double? heatmapOpacity, double? heatmapRadius, double? heatmapWeight})

Properties

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.
getter/setter pair
heatmapIntensity double?
Similar to heatmap-weight but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
getter/setter pair
heatmapOpacity double?
The global opacity at which the heatmap layer will be drawn.
getter/setter pair
heatmapRadius double?
Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
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.
getter/setter pair
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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

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) HeatmapLayer