McDowell's Location Hexbins
✓ Published0🌍 Public
WWill Carter
Last edited Sep 11, 2019
Created on Sep 5, 2019
This interactive map uses Mapbox GL to display hexagonal bins that reveal the density of locations across the continental United States. The visualization dynamically requests GeoJSON data from a local server based on the current map bounds and zoom level, coloring each hexagon by its location count, with a categorical color scale ranging from light blue to dark blue. At higher zoom levels, individual location points appear as orange circles, and hovering over a bin triggers a popup showing the exact count. The code uses Mapbox GL’s `addSource`, `addLayer`, and `setData` methods to update both the hexbin and point layers as the user pans or zooms.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed