heatmapColor

open override fun heatmapColor(heatmapColor: Expression): HeatmapLayer

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

Use static method HeatmapLayer.defaultHeatmapColor to set the default property.

Parameters

heatmapColor

value of heatmapColor


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