finds.dev

Leaflet/Leaflet.heat

A tiny, simple and fast heatmap plugin for Leaflet.

View on GitHubHomepage ↗

★ 1,661JavaScriptBSD-2-Clauseupdated Nov 2026

// the take

Leaflet.heat is a small heatmap layer for Leaflet maps, built on top of simpleheat with a grid-clustering step added for performance. It's for anyone who needs a fast, dependency-light heatmap overlay on a Leaflet map and doesn't need anything fancier than that.

The grid clustering (merging nearby points into cells sized by radius+blur before rendering) is the actual engineering here — it's what lets the demo push 10,000 points without choking, instead of naively rendering every point. It supports Leaflet 1.9 and 2.0 from one codebase using only public Leaflet APIs, which is a real compatibility win given how much plugin code breaks on major Leaflet upgrades. It ships TypeScript types and both ESM and plain-script global builds, so it fits import-map setups and old script-tag pages alike.

It's a single canvas layer with no per-point interactivity — no hover tooltips, no click targets, nothing to hook into individual points once they're painted. Rendering is still one full canvas redraw on any change; there's no incremental/tiled rendering, so very large or frequently-updating datasets (streaming geo data, real-time tracking) will eventually hit a wall the grid clustering alone won't fix. The 0.2→1.0 jump is a hard breaking change — it dropped global `L.heatLayer` registration and switched to ES modules only, so anyone upgrading from an older version on a plain `<script>` setup has to explicitly switch to the separate global build. There's also no built-in legend or scale widget, so you're on your own for communicating what the colors mean to end users.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,661
Forks
523
Language
JavaScript
License
BSD-2-Clause
Last commit
3 Nov 2026

// nearby

If Leaflet.heat isn't quite it.

All repos →