MTHeatmapLayer

@Serializable
class MTHeatmapLayer : MTLayer

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

constructor(identifier: String, sourceIdentifier: String)
constructor(identifier: String, sourceIdentifier: String, maxZoom: Double, minZoom: Double, sourceLayer: String)
constructor(identifier: String, type: MTLayerType, sourceIdentifier: String, maxZoom: Double?, minZoom: Double?, sourceLayer: String?, color: StyleValue?, intensity: StyleValue?, opacity: StyleValue?, radius: StyleValue?, weight: StyleValue?, visibility: MTLayerVisibility)

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.

@SerialName(value = "id")
open override var identifier: String

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.

@SerialName(value = "maxzoom")
open override var maxZoom: Double?

The maximum zoom level for the layer.

@SerialName(value = "minzoom")
open override var minZoom: Double?

The minimum zoom level for the layer.

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.

@SerialName(value = "source")
open override var sourceIdentifier: String

Identifier of the source to be used for this layer.

@SerialName(value = "source-layer")
open override var sourceLayer: String?

Vector tile source layer name, if applicable.

open override var type: MTLayerType

Type of the layer.

Whether this layer is displayed.

A measure of how much an individual point contributes to the heatmap.

Functions