Skip to main content

heatmapSettings

A heatmap's radius in pixels and intensity, from fixed numbers or the layer's controls.

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { heatmapSettings } from "@mapcairn/core";

function heatmapSettings(spec: HeatmapSpec, controls: ControlValues): {
readonly radius: number;
readonly intensity: number;
};

Parameters​

  • spec (HeatmapSpec)
  • controls (ControlValues)

Returns​

{ readonly radius: number; readonly intensity: number; }

See also​

Source: packages/core/src/layers/heatmap.ts:28