hexbin-heatmap: aggregating points into H3 hexagons and geohash cells, in the browser and CLI
Plotting tens of thousands of points on a map makes dense areas collapse into a solid blob, hiding how many points each location holds. The usual remedy is to aggregate points into grid cells and color those cells instead, though choosing a grid, scaling colors across wide value ranges, and handling cells that cross the 180° meridian add complexity. The open-source hexbin-heatmap project tackles these issues by binning CSV or GeoJSON points into H3 hexagons or geohash cells and rendering them as a choropleth in MapLibre with a resolution slider. The same aggregation logic is also available as a command-line tool that outputs GeoJSON or CSV, with each cell carrying count, sum, and mean values. The web app runs entirely in the browser so files are never uploaded, and the project includes setup instructions for local development, testing, and building.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in