supercluster
A very fast JavaScript library for clustering geospatial points in browsers and Node. It groups nearby markers so maps with many points stay readable.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XLicense: ISC
Overview
supercluster is a JavaScript library for clustering geospatial points in browsers and Node. It was built to power clustering in Mapbox GL JS and groups nearby markers so a map with many points stays readable. You create an index with a radius and maximum zoom, load an array of GeoJSON Point features, then ask for the clusters inside a bounding box at a given zoom. It installs from npm or Yarn, or loads from a CDN or script tag.
Key features
- load() indexes an array of GeoJSON Point features
- getClusters() returns clusters for a bounding box and zoom
- Configurable radius and maximum zoom
- Works as an ES module, from a CDN or via script tag
Best for
Developers showing many map markers who want them grouped by zoom level, in Mapbox GL JS, Leaflet or their own code.
- Upstream
- mapbox/supercluster
- Fork on GitHub
- Guo-astro/supercluster
- Upstream stars
- 2.4k
- Category
- Maps and geospatial
- Language
- JavaScript
- License
- ISC
- Forked
- 2020-11-01
- Sync status
- In syncLast synced 2026-11-08
More in Maps and geospatial
An interactive atlas for exploring Chinese history from 403 BCE to the present. Move through historical periods to see territorial changes, locate places, and connect them with historical events and poetry.
Forked 2026-10-21Last synced 2026-10-25License: GPL-3.0Maps and geospatialGitHub
A Go terminal map viewer and journey planner for recorded activities and planned routes. Inspect tracks, elevation, and playback offline, or use Mapbox for place search and road routing.
Forked 2026-10-19Last synced 2026-11-08License: MITMaps and geospatialGitHub
GeoLibre is a GIS for visualizing and analyzing geospatial data across browser, desktop, mobile, and notebooks. It keeps work local with browser geoprocessing tools.
Forked 2026-10-07Last synced 2026-11-08License: MITMaps and geospatialGitHub
An open source command line toolkit that turns drone, balloon or kite photos into maps, point clouds, 3D models and elevation models. Used for aerial mapping and surveying.
Forked 2026-06-09Last synced 2026-11-08License: AGPL-3.0Maps and geospatialGitHub