US Elections Map

A web application that maps the 2024 U.S. presidential election results by county, with national and state totals. It is written in C++ with the Wt web framework and stores the results and the county shapes in a DuckDB spatial database. The map is drawn with MapLibre GL JS. Point at a county to see its results, and click on it to zoom in.

Election results: https://github.com/tonmcg/US_County_Level_Election_Results_08-24
County shapes: https://github.com/topojson/us-atlas

Source code available at: https://github.com/pedro-vicente/us.elections

Live demo: https://pedro-vicente.net/elections/

Background map: © OpenStreetMap contributors © CARTO


Home | Pedro Vicente, 2026