Post

Literary Map of the United States

Can you read your way across the USA?

Original poster

Around 2020, I walked into Green Apple Books in San Francisco and purchased a charming color poster titled Literary Map of the United States (ISBN: 9780991171095) by the designers at 3 Fish Studios. I was so enchanted (partly because structured data is one of my love languages) that I bought the poster for my niece, and now when I visit my sister’s house I always see it on the wall. ❤️

My adaptation for the web

I envisioned an interactive map that users could access on a web or mobile client, where they could click on states to reveal the suggested book titles – and then explore or actually access these titles (as e-books or audiobooks). So, with the goals of practicing my JavaScript, reflecting on the historiography embedded in this collection of titles, and deepening my knowledge of U.S. history, I set about adapting this map for the web.

See the live map.

How I structured the data

To achieve this vision, I first manually recreated the data set (states, titles, authors) in Google Sheets so I could structure batch queries to acquire the spatial, multimedia, and URL data I needed to build the map and make it interactive.

First, I needed spatial data to visualize the map, and offer pop-ups when users clicked on one of the states:

  • Polygon (shape file) for each state.
  • Centerpoint (latitude and longitude coordinates) for each state.

    Note: I don’t remember where I got the spatial values (open data), but because the source also included ratification dates, I became more curious about territories that were not ratified as states. This prompted me to begin reading *How to Hide an Empire: A History of the Greater United States* by Daniel Immerwahr (ISBN: 9780374172145).

Next, I needed style data to make the interactive map echo the whimsical visual style of the original, so I created a Mapbox map style using two of the main visual elements:

  • Color value (ie, pink, purple, green) for each state.
  • Font (Dancing Script Regular).

Lastly, I needed metadata for the titles, to enable pop-ups with a cover image and description for each book. If you need to do this, you can use the Google Books API:

  • Cover images:
1
curl -o 'Beloved.jpg' 'http://books.google.com/books/content?id=ppfYf0K6fcoC&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api'
  • Other data, returned as a JSON object:
1
2
3
4
5
{
 title: 'The Book Of Unknown Americas',
author: 'Cristina Henríquez',
state: 'Delaware'
},

Then, because I like to access free audiobooks from the San Francisco Public Library, I created a batch of queries so a user can see if such a resource is available for any given title. Here’s an example query for The Book Of Unknown Americas:

1
open https://sfpl.bibliocommons.com/v2/search?query=The%20Book%20Of%20Unknown%20Americas

Technology stack

Tileset costs

  • I accidentally incurred big accidental tileset hosting costs from Mapbox and had to delete a hosted tileset.

Contacting the original author

I reached out to the team 3 Fish Studios to let them know I adapted their map:

Hello friends! A few months ago I was inspired to create an interactive version of the Literary Map of the United States which I believe is a creation from one of your designers. I accidentally racked up some hosting charges related to mapping resources, so I’ve partially dismantled the project…but I do want to reach out and thank you for your creation, and check in about whether you feel properly credited. I’m a high school computer science teacher, so I’m not a FT web developer and I don’t have an income stream related to this project – but if there is a way I can send you more paying customers for your work, I would like to be helpful! The online project can be viewed here on GitHub: https://github.com/domlet/literary-map/blob/main/README.md Yours truly, Dom

Co-owner Eric Rewitzer replied, sharing that the project was initially developed for California Bookstore Day back in 2014, and it has since grown to be part of Independent Bookstore Day. (Takes place annually on the last Saturday in April.) 3 Fish also did two other maps for this project: The Literary Map of the Seas and The Literary Map of the Universe. So cool.

Future steps

Phase 1

Well, because I created a tileset with too small a resolution (I wanted to give users the ability to explore the map at pretty high zoom levels), I ended up racking up some Mapbox bills that I had to pay, so after 6 months I just deleted my U.S. tileset and broke the map. So here’s my to-do list:

  1. Fix a bug where popups do not work for states with MultiPolygon geometries.
  2. Modify and restore the primary tileset.
  3. Add U.S. territories to make the colonial history less obscure:
  4. When I Was Puerto Rican (Puerto Rico)
  5. Leaves of the Banyan Tree (American Samoa)
  6. Land of Love and Drowning (Virgin Islands)

Phase 2

Now that the structure exists for an interactive literary map, I could add a feature to curate completely different collections of U.S.-themed books – such as LGBTQ+ fiction, science fiction, Spanish-language fiction, narratives of colonial resistance, lesser-known inventors, or anything really. Each collection could have its own map style, changing the appearance of the map when a new collection is selected for display.

To add a whole new layer of interactivity, I could add a panel with all the book titles from the collection, and users could check boxes for all the titles they have read. The map could visualize the user’s list on the map to reveal the geographic aspect of their past reading, to reveal bias (such as a New York/California coastal bias, or a bias towards the southwest, American South, or the U.S.-Mexico border region).

Phase 3

After sharing all my human labor in an open source repository that will be harvested by AI so that corporations can profit from robots who mined the gems of guilless humans… I envision that I will suffer from wage stagnation and a shortage of employment opportunities, combined with a vicious ideology that blames individuals for being poor while hyping the brilliance of those who read the technological forecast and have sufficient privilege to access opportunities for marshalling monetary investment from the super-rich, which will pay said wages for said scarce opportunties whose technical labor will create (for private profit) the transformative technologies of the future, which unfortunately many will not see due to the lack of affordable healthcare which results in the premature death and bankrupcy of ordinary people under technological capitalism. Adding that to my to-do list.

This post is licensed under CC BY 4.0 by the author.