Svelte Maplibre

API / Layers

HeatmapLayer

Add a MapLibre heatmap layer to the map. It shows the density of point features as a heatmap.

This is a thin wrapper around Layer with type set to heatmap. Place it inside a source component such as GeoJSON, or set the source prop.

import { HeatmapLayer } from 'svelte-maplibre';

Generic parameters: FEATURE extends Feature = Feature

Examples

Props

  • paint required HeatmapLayerSpecification["paint"]
  • layout HeatmapLayerSpecification["layout"]

Inherited from CommonLayerProps

Source: src/lib/HeatmapLayer.svelte