HeatmapLayer
A heatmap layer draws points from the sourceLayer in the given source as a heatmap.
Parameters
Unique layer name.
Vector data source for this layer.
Layer to use from the given vector tile source.
The minimum zoom level for the layer. At zoom levels less than this, the layer will be hidden. A value in the range of [0..24]
.
The maximum zoom level for the layer. At zoom levels equal to or greater than this, the layer will be hidden. A value in the range of [0..24]
.
An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The featureState expression is not supported in filter expressions.
Whether the layer should be displayed.
Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses heatmapDensity as input.
The global opacity at which the heatmap layer will be drawn.
Radius of influence of one heatmap point. Increasing the value makes the heatmap smoother, but less detailed.
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. A value in the range of [0..infinity)
.
Similar to weight but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
Function to call when any feature in this layer has been clicked.
Function to call when any feature in this layer has been long-clicked.