Back to Mapbox elections

Albers USA projection style

Albers USA projection style containing all 50 US states + Puerto Rico, and their counties.

When covering the US elections, not all map projections are created equal. Representation of all states matters. Albers USA is typically the go-to projection for US Elections because it shows a non-distorted Alaska and Hawaii in close proximity to the rest of the states. However, Mapbox basemaps are rendered in a web mercator projection by default.

For election visualizations and analysis, we created a map style that includes polygons and points for states and counties in an Albers USA projection. We've also included Puerto Rico for visualizations that go beyond election results, like campaign finance maps.

choropleth in Albers USA projection including Puerto Rico

What’s in the style?

The Albers USA map style features two tilesets, one for polygons and one for points -- “albersusa” and “albersusa-point” respectively. Each tileset has geometries for both states and counties. 

Properties

Both tilesets contain two sets of geometry, distinguishable by the `type` property.  Polygons and points that are of type "state" feature the following properties:

Polygons and points that are of type `county` contain the following properties:

About the data

The data comes from the US Census 2018 cartographic boundary shapefiles. Territories like Guam and Puerto Rico were removed. To reproject and modify the data, we used the Mapshaper and Dirty Reprojectors npm packages. 

To use the style

To use the style and the tileset, you will need a Mapbox account. You can: 

  • Add the style to your account using this link
  • Add the tilesets via Mapbox GL JS

You can also join data to geometries using feature-state and the `promote-id` method. 

Limitation

The style is a representation of Albers USA in a web mercator projection. This means that to add any additional geometries, like points or polygons, you will need to reproject that data using Dirty Reprojectors in order to display “correctly” over the United States.

Read more

Read the tutorial: Guide to Albers USA projection in Studio.

Video (above): How to re-project your data for use with the Mapbox Albers USA map style, using QGIS, Dirty Reprojectors, Tippecanoe, and Mapbox Studio.


Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

This is some text inside of a div block.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.