Add a Custom GeoJSON Layer with Data‑Driven Circle Styling in Mapbox GL JS
Step‑by‑step guide to load a GeoJSON point set into Mapbox GL JS and style circle radii dynamically using a data‑driven expression.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Step‑by‑step guide to load a GeoJSON point set into Mapbox GL JS and style circle radii dynamically using a data‑driven expression.
Learn how to enable client-side clustering in Mapbox GL JS to render thousands of points efficiently, with a code example and performance considerations.
Learn how to implement client-side point clustering in Mapbox GL JS to handle high-density datasets using GeoJSON sources, data-driven styling, and interactive zoom-to-expand functionality.
Feature-state restyles a feature on hover without resending geometry — but it silently does nothing when features have no id. Here's the mechanism, a worked pattern, and the trade-offs.
Learn when to use Vector Tiles versus GeoJSON sources in Mapbox GL JS to maintain 60fps performance when visualizing high‑density geographic datasets.
Learn when to use Mapbox Vector Tiles (MVT) versus GeoJSON based on data volume, update frequency, and client-side memory constraints.