MTHeatmapLayer
A heatmap style layer renders a range of colors to represent the density of points in an area.
Supports color ramps and expressions for intensity, radius, opacity, and weight.
Constructors
Properties
Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses "heatmap-density" as input.
Unique layer identifier.
Similar to heatmap-weight but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
The global opacity at which the heatmap layer will be drawn.
Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
Identifier of the source to be used for this layer.
Vector tile source layer name, if applicable.
Type of the layer.
Whether this layer is displayed.
A measure of how much an individual point contributes to the heatmap.