HeatmapOptions
HeatmapOptions =
object
Defined in: packages/layer-webgl/src/heatmap/types.ts:1
Properties
Section titled “Properties”colorStops
Section titled “colorStops”colorStops:
object[]
Defined in: packages/layer-webgl/src/heatmap/types.ts:5
color:
string
value:
number
getWeight?
Section titled “getWeight?”
optionalgetWeight?: (node) =>number
Defined in: packages/layer-webgl/src/heatmap/types.ts:4
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number
radius
Section titled “radius”radius:
number
Defined in: packages/layer-webgl/src/heatmap/types.ts:2
shading?
Section titled “shading?”
optionalshading?:object
Defined in: packages/layer-webgl/src/heatmap/types.ts:9
intensity?
Section titled “intensity?”
optionalintensity?:number
Diffuse lighting strength, 0–1 (default: 0.5)
lightAngle?
Section titled “lightAngle?”
optionallightAngle?:number
Light direction in degrees, 0=top, clockwise (default: 315 = top-left)
rotateWithCamera?
Section titled “rotateWithCamera?”
optionalrotateWithCamera?:boolean
When true (default), the light rotates with the camera. When false, the light stays fixed in world space.
shininess?
Section titled “shininess?”
optionalshininess?:number
Specular exponent (default: 16)
smoothing?
Section titled “smoothing?”
optionalsmoothing?:number
Pixel radius for gradient sampling — higher = smoother shading (default: 3)
specular?
Section titled “specular?”
optionalspecular?:number
Specular highlight strength, 0–1 (default: 0.2)
zoomToRadiusRatioFunction
Section titled “zoomToRadiusRatioFunction”zoomToRadiusRatioFunction: (
ratio) =>number
Defined in: packages/layer-webgl/src/heatmap/types.ts:3
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”number