Skip to main content
100%

U.S. Congressional Districts

✓ Published0🌍 Public
WWill Carter
Last edited Mar 2, 2021
Created on Mar 2, 2021

This map shows U.S. congressional districts for a selected state, displayed as semi-transparent pink polygons over a Mapbox basemap. The visualization uses Mapbox GL JS to render a GeoJSON source fetched from an AWS API Gateway endpoint, which returns district boundaries for the requested state (defaulting to Indiana). After loading, the map automatically flies to the first polygon’s coordinates, zooming in for detail. The code relies on Mapbox’s `addSource` and `addLayer` methods, plus the `flyTo` animation, with no additional charting libraries.

AI-generated description

Similar vizzes