Mapbox GeoJSON clustering: enable it or render every point?
Decide when to enable native GeoJSON clustering in Mapbox GL JS, how to style clusters, and how to validate click and performance behavior.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Decide when to enable native GeoJSON clustering in Mapbox GL JS, how to style clusters, and how to validate click and performance behavior.
Stop reloading GeoJSON files. Learn how to use Mapbox GL JS sources, layers, and data-driven expressions to implement instant filtering and styling on the GPU.
Move zoom- and data-driven styling out of JavaScript event handlers and into declarative Mapbox GL JS style expressions.
A technical guide on choosing between GeoJSON and Vector Tiles in Mapbox GL JS to prevent browser lag and optimize.
Mapbox GL JS developers can now generate realistic 3D terrain on‑the‑fly using Terrain‑RGB tiles. This guide walks through adding a raster‑dem source, setting terrain, and optional custom shaders, while highlighting trade‑offs and monitoring tips.
A diagnostic guide for blank Mapbox maps caused by CORS errors, expired tokens, or incorrect sprite and glyph URLs, with ordered network checks and targeted fixes.
Client-side clustering in Mapbox GL JS is a source option, not a layer trick. The three-layer pattern, click-to-expand zoom, clusterProperties aggregates, and when vector tiles are the better call.
Learn how Mapbox GL JS style expressions like get and interpolate can reduce client-side re-renders by keeping source data static while updating visuals through feature state and property lookups.
A custom vector source in Mapbox GL JS can fail silently. Here is what actually has to match — tile format, source-layer naming, and CORS — plus a worked example and verification checks.