Companion

object Companion

Static variables and methods.

Properties

Link copied to clipboard

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"].

Link copied to clipboard

Similar to heatmap-weight but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level. Default value: 1. Minimum value: 0.

Link copied to clipboard

Similar to heatmap-weight but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level. Default value: 1. Minimum value: 0.

Link copied to clipboard

Transition options for HeatmapIntensity.

Link copied to clipboard

The global opacity at which the heatmap layer will be drawn. Default value: 1. Value range: 0, 1

Link copied to clipboard

The global opacity at which the heatmap layer will be drawn. Default value: 1. Value range: 0, 1

Link copied to clipboard

Transition options for HeatmapOpacity.

Link copied to clipboard

Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed. queryRenderedFeatures on heatmap layers will return points within this radius. Default value: 30. Minimum value: 1.

Link copied to clipboard

Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed. queryRenderedFeatures on heatmap layers will return points within this radius. Default value: 30. Minimum value: 1.

Link copied to clipboard

Transition options for HeatmapRadius.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.

Link copied to clipboard

The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.

Link copied to clipboard

Visibility of the layer.