# MapHeatmapSource

What a heatmap is made from: loaded points, or a vector tile source layer of points.

This is a type alias exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { MapHeatmapSource } from "@mapcairn/core";
 
type MapHeatmapSource = {
    readonly kind: "points";
    readonly points: readonly {
        readonly position: LatLng;
        readonly weight?: number;
    }[];
} | {
    readonly kind: "vector";
    readonly source: MapVectorSource;
    readonly sourceLayer: string;
    readonly weightField?: string;
    readonly minzoom?: number;
    readonly maxzoom?: number;
};
```

## See also

- [`LatLng`](https://docs.mapcairn.com/api/core/LatLng.md)
- [`MapVectorSource`](https://docs.mapcairn.com/api/core/MapVectorSource.md)

Source: [packages/core/src/ports/map.ts:274](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/map.ts#L274)
