This is a repository of HTML files for mapping every US Congressional District
Input
The main R script, make_CD_map.R
downloads shapefiles of US Congressional Districts for the current Congress (at this time the 115th Congress) from the US Census Bureau website.
Output
For each Congressional District there are two files generated:
-
A base64 encoded Leaflet map. This is generated as a 100%
<div>
with maps from OpenStreetMap -
A geoJSON file created with geojson.io using WGS84 coordinates
Both of these outputs can be styled with different base maps or use different coordinate systems as desired.
Examples
For example, I live in WA-09 and here is the corresponding HTML map:
And the geoJSON file: