Work down this page during the session or return to it later. Each step shows a source, the prompts sent to an AI tool, and the map that came back, so you can repeat the process with your own material.

Make every step behind a map visible: where each location and number came from, and who made each choice about how to draw them.

Introduction

Why the data is the place to start

Ask an AI tool for a map and you will get one in seconds. It may even look right. The trouble is that nothing about its appearance tells you whether the towns are where it put them, or whether the shading means what the legend says.

Most of the work in a map that holds up happens before anything is drawn. Someone decides what each row stands for, which place a name refers to, where its coordinates came from and which boundary a number belongs to. AI can help with every one of those decisions, and it can write the code that draws the map, but it makes those decisions silently unless you make them first. This session works through five kinds of material, from a list of names to a page of a 1910 census report, and shows where the decisions sit in each.

What a web map is made of

If you haven’t made a map before, these are the parts. Every map on this page is built from them, and each one is a place where someone makes a decision.

Three panels of New Mexico at the same scale: a street-style base map alone, colored points alone on a white background, and the two combined.

The ghost-town map from step 2, taken apart. Only the middle layer came from the data.

  • A base map and a data layer. A web map is layers stacked in a browser. The bottom layer, the base map, shows roads, rivers, borders and place names. Someone else drew it, and it arrives as small square images called tiles; the maps here use OpenStreetMap’s. Your data sits on top. Only that layer is yours, and only it can be checked against a source. Some maps have no base map at all: in the county maps of step 4, the county shapes are the map.
  • A location is a pair of numbers. A point is placed by its latitude, how far north or south (about 35 in central New Mexico), and its longitude, how far east or west (about −106, negative because it is west of Greenwich). Maps use them as decimal degrees: Albuquerque is 35.0845, −106.6511. Some files put latitude first and some put longitude first, and a swapped pair is a common reason a point lands in the wrong place or disappears. The numbers have to come from somewhere: a gazetteer (step 2), a phone’s GPS (step 3) or a geocoding service, which looks up an address and returns coordinates. A model’s memory is not a source (step 1).
  • Every feature is a shape made of coordinates. Each thing on the data layer is drawn as one of three kinds of shape, and each shape is nothing more than coordinate pairs. A point is a single pair: a town, a photograph. A line is a series of pairs joined in order: a road, a river, a railroad. A polygon is a series that closes back on its first pair, tracing the border of an area: a county, a state, a lake. A detailed county border can take hundreds or thousands of pairs. A point fits in a table as two columns, which is why steps 2, 3 and 5 start from tables. A polygon doesn’t fit in a table cell, so areas come in a boundary file: one shape per row, with a few columns that say what each shape is, such as the county’s name and ID (step 4). You will meet three formats: CSV for tables, GeoJSON for shapes on the web, and the shapefile, an older format for shapes that is really several files shared together as a ZIP.
  • A join connects a table to shapes. Census figures arrive as a table with no shapes, and a boundary file has shapes but not your figures. A join matches each row to its shape through an ID both files share, such as a county’s FIPS code. A row that fails to match simply goes missing from the map unless you ask for a list (step 4).
  • Shading and classes. A choropleth shades each area by a value. The values are grouped into classes, the bands in the legend, and where the breaks fall decides what looks high or low. Raw counts mostly show where people live, so shade by a rate (step 4).
  • Projection. The earth is round and a screen is flat, so every map stretches something; the projection is the rule for how. A map drawn on tiles has to use the tiles’ projection, Web Mercator, which keeps streets and coastlines looking right but makes places look larger the farther they are from the equator. That is fine for the point maps in steps 1, 2, 3 and 5. A map that draws its own shapes without tiles can use any projection. The county maps in steps 4 and 6 have no tiles, and each run chose an Albers equal-area conic projection, the usual choice for maps of the United States, because it keeps every county’s area true. That matters when color fills the area.
  • The map is a file. A web map from an AI tool is usually a single HTML page that uses a mapping library, often Leaflet, to fetch the tiles and draw your data. You open it in a browser, and nothing needs installing. A figure for print is a different product: an image made by a script, with no tiles (step 6). Desktop mapping software (GIS) such as QGIS does all of this in one program, with more to learn.

When you ask AI for a map without saying how to handle these, it decides them for you. The steps show where.

About the examples

All the sources are real and public: a Wikipedia list, photographs taken on a phone, current Census Bureau data and the 1910 census report for New Mexico, which is in the public domain. The replies and maps on this page are recorded from actual runs on 11 November 2026, labeled with the tool and date. Notes under each reply say what was attached and what was cut. Models change, so yours may differ. When a step shows a recorded map, the prompts above it are the ones that produced it.

In most steps, the tool in these runs could read and write files, but it could not run code or search the web. The exceptions are noted under each reply: step 1’s picture came from Gemini, the runs in steps 3 and 6 could also run code, and one reply in step 5 was run with no tools at all. That was how we recorded them, and it shows in the replies. Several say they haven’t opened the map they made, and some name details they couldn’t check, such as web addresses written from memory. That is the tool being straight about what it couldn’t do. We opened every map ourselves, and the screenshots show what we saw.

Setting up to follow along

You can follow most of this page in an ordinary AI chat in your browser, such as ChatGPT, Claude or Gemini. A few things are worth knowing first.

  • Step 1’s picture needs a chat that makes images. ChatGPT and Gemini do; Claude doesn’t. Every other step works in any of them.
  • Two prompts are marked “Needs a tool that runs code” (steps 2 and 3). Most chat tools can run code on files you upload, but some plans or settings turn it off. If a reply says it can’t run code, it will usually hand you a script to run yourself, or, as in step 2, do the work by reading, which is slower and needs more checking. Look for a setting called something like code execution or analysis, or use a coding assistant (Claude Code, GitHub Copilot or Cursor) opened on a folder of your files.
  • Getting a map out of a chat. Many prompts ask for “a single HTML file”. Depending on the tool, it arrives as a preview beside the chat, a file to download, or code in the reply. If it is code, copy it into a plain text file, save it with a name ending in .html and double-click it to open it in your browser. If a preview stays blank, download the file and open it in your browser instead: previews often block the map tiles and boundaries that a map loads from the internet.
  • What “attach” means. Many prompts begin “I have attached…”. Attaching a file uploads it with your message, so the AI can read it. First download the file from this page to your computer: a chat can’t open a link to it for you. Then, in the chat, click the paperclip or + button beside the message box and choose the file, or drag the file onto the chat window. Paste the prompt and send both together. Chat tools take files or a ZIP, not a folder, so where a step uses a folder, attach it as a ZIP. In a coding assistant, put the files in the folder it is working in instead.
  • New chat or same chat. Where it matters, the note above a prompt says whether to start a new chat or continue the last one. A new chat keeps earlier replies from steering the next.

Data for this session

Every file attached to a prompt on this page is in one ZIP (6.5 MB), with a README giving each file’s source, so you can repeat any step without first repeating the ones before it. The one file not in it is the Census Bureau’s county boundary file (12 MB), used in steps 4 and 6. Each step also links the files it uses, and the maps the runs made are linked under each screenshot.

The files one at a time
Step File What it is
2 nm-ghost-towns-wikipedia-2026-11-11.tsv The Wikipedia table as copied on 11 November 2026, saved as tab-separated text (CC BY-SA 4.0)
2 nm-ghost-towns.csv That table as a CSV, from the first prompt
2 gnis-nm-populated-places.txt GNIS’s 1,601 New Mexico populated places; the full state file has every feature type
2 nm-ghost-towns-gnis.csv The CSV with GNIS matches, from the second prompt
3 marrakech-cats-sample.zip 20 phone photos by Jonathan Seyfried; all 208 are in his repository
4, 6 nm-county-population-2020-2024.csv New Mexico’s rows from the Census Bureau’s 2024 county estimates
4 us-county-population-2020-2024.csv Every county, 2020 and 2024 only; the full estimates file has every year
4, 6 cb_2023_us_county_500k.zip Census Bureau county boundaries (12 MB, from the Census Bureau)
5 census-1910-nm-cities-table.png The table on page 158 of the 1910 report
5 nm-cities-1860-1910.csv Its transcription, checked against the scan
5 nm-city-coordinates-gnis.csv GNIS coordinates for the four cities
5 nm-counties-1900-1910.txt County names in the 1900 and 1910 censuses

Files that came out of a prompt are the recorded replies’ files, checked as each step describes.

1. Ask for a map and see what comes back

Send this to a chat tool that can make images, such as ChatGPT or Gemini.

Ask for a map the obvious way
Make me a map of the ghost towns of New Mexico.

Send this to a tool that makes images. Don't add anything else; the point is to see what a bare request produces.

Engraving-style picture of a map titled Nuevo México: Mapa histórico de los pueblos abandonados y rutas antiguas, with mountains, trails, wagons, a compass rose and labeled towns including Shakespeare, Chloride, Kelly, Golden and Pinos Altos.

The picture that came back, from Gemini on 11 November 2026.

Look at the town names and where they sit. Most are real New Mexico ghost towns, but Shakespeare and Steins, both near the Arizona line in the southwest, appear at the top and on the east edge, and Dawson and Colfax, in the northeast, appear in the middle and the southeast. Golden, Kelly and Pinos Altos each appear twice, and one label, Fasnflur, is not a place at all. An image generator draws a picture that resembles maps it has seen. Nothing in the picture can be checked, corrected or updated, because there is no data behind it.

Now ask a chat tool that writes code for the same thing.

Ask for a map drawn from data
Make an interactive map of the ghost towns of New Mexico as a single HTML file I can open in a browser. Put a clickable point at each town with its name.

Send this in a new chat. Open the HTML file it gives you in a browser.

The map that came back Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I made the map as a single HTML file:

[…]

I haven’t opened it in a browser to test it, so please let me know if anything doesn’t display or click right.

What it does:

  • It shows 40 ghost towns, each as a labeled point on an OpenStreetMap base map. Examples include Shakespeare, Mogollon, Kelly, White Oaks, Elizabethtown, Dawson, Lake Valley, Glenrio and Golden.
  • Clicking a point opens a popup with the county, a one-line history and a link to open that spot in Google Maps.
  • A sidebar lists the towns alphabetically. Clicking a name zooms to that town, and a filter box narrows the list by town or county.

Things to know:

  • The locations are approximate. I typed in the town list and coordinates from memory, not from a source like the USGS place-name database. Most should be close, but some of the more obscure ones could be a few miles off. Those include Jicarilla, Rosedale, Catskill, Van Houten, Hermanas, Colmor and Old Hachita. Don’t use them to navigate to remote sites.
  • The list isn’t complete. New Mexico has hundreds of abandoned settlements. I also included a few places that still have some residents but are usually called ghost towns, such as Madrid, Mogollon and Chloride.
  • It needs an internet connection. The map library and map tiles load online when you open the file.

If you have a list or dataset you trust, I can rebuild the map from it with exact coordinates.

This tool could write files but not search the web or run code. The screenshot below is the file it wrote, opened in Chrome.

Web map of New Mexico with 40 labeled orange points and a sidebar listing the towns alphabetically with their counties.

The map that came back: 40 towns, each placed at coordinates the tool supplied.

Open the map this run made, exactly as the tool wrote it.

This one is a real map. The state outline comes from map tiles, the points sit at coordinates, and you can click them. It looks far more trustworthy. This run admitted, unprompted, that it typed the coordinates from memory. Not every run will say so, so ask.

Ask where the locations came from
Where did the list of towns and the coordinates for each one come from? For each town, name the source of its coordinates, or say that you supplied them from memory. Mark any you are unsure of.

Send this in the same chat as the code map.

Where the locations came from Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

All of it came from my memory. I didn’t look anything up, use a database, or check any coordinates while building the map, so no town has a citable source. The town list, counties, one-line notes and coordinates were all typed in from what I recall. Below is how confident I am in each set of coordinates.

Confidence levels:

  • Fairly sure: a well-known site whose position I recall well. Probably within a mile or two.
  • Unsure: I know roughly where the town is, but the point could be off by several miles.
  • Very unsure: a rough guess at the area, possibly 5–15+ miles off.
Town Coordinates from Confidence
Ancho Memory Fairly sure
Bland Memory Unsure
Cabezon Memory Unsure
Carthage Memory Unsure
Catskill Memory Very unsure
Chloride Memory Fairly sure
Claunch Memory Fairly sure
Colmor Memory Very unsure (the county is also uncertain)
[…]    

Some caveats:

  • Even “fairly sure” only reflects how well I remember the place, not a check against a source. Any of these could be wrong.
  • The counties and history notes are also from memory and haven’t been checked.
  • Choosing which towns to include was my judgment too. Several places on the list still have some residents, such as Madrid, Mogollon, Chloride and Kingston.

How to get verified coordinates: the USGS Geographic Names Information System (GNIS) has an official coordinate for nearly every named place in New Mexico, including historical and abandoned ones. If you download its New Mexico file, or give me another list you trust, I can rebuild the map from that data. Each popup could then cite its source, and towns that don’t match could be flagged.

Same session as the map. The table lists all 40 towns; rows after Colmor are cut.

The coordinates came from the same place as the picture: the model’s memory. The code map has the same problem as the image, now hidden behind a display that looks authoritative. Its confidence ratings are also from memory: “fairly sure” describes how well the model recalls a place, not a check. The list itself was a judgment call. It chose 40 towns, including Madrid and Chloride, which still have residents. Wikipedia’s list, in the next step, has 66.

None of that is malfunction. You asked for a map without saying which towns, from which source, located how. The rest of this page supplies those answers before asking for anything to be drawn.

After any AI-made map, ask: “Where did each location come from? Mark any you are unsure of.” If it can’t name a source for a point, treat the point as a guess.

2. Map a list of places from a table

Start with a list someone else has compiled and sourced. Wikipedia’s List of ghost towns in New Mexico is a table of 66 towns with their county, the years settled and abandoned, and their current status. Only three rows give coordinates. That gap is common in historical lists, and filling it is the main job here.

Turn the table into data

Open the List of ghost towns in New Mexico on Wikipedia. Select the whole table, from the header row down to the last town, copy it and paste it into a new chat. Then paste this prompt below it and send.

The list changes as people edit it. To start from the same table as the run below, use our copy from 11 November 2026 instead, which is also in the session ZIP: open it in a text editor or spreadsheet, copy everything and paste that.

Turn a pasted table into a CSV
Turn the table I pasted into a CSV file with these columns: name, other_names, county, settled, abandoned, status, coordinates_as_given, remarks.

Copy every value exactly as it appears. Leave a cell blank when the table has no value; don't fill gaps from your own knowledge. Put coordinates in coordinates_as_given only where the table gives them.

Then tell me how many rows the CSV has and how many have coordinates, and list any rows you had trouble splitting into columns.

Paste the table above the prompt first, from Wikipedia or our copy. Download the CSV it gives you and keep it with the page's URL and the date you copied it.

The CSV summary Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I wrote the CSV to […].

Counts

  • 66 rows, plus the header row.
  • 3 rows have coordinates: Arkansas Junction, Baldy Town and Bland.

One decision for you to check: I treated a - in the table as “no value” and left those cells blank, the same as cells that were already empty. If you’d rather keep the dashes as literal values, I can put them back.

Rows that were hard to split None of the rows were actually ambiguous. Every line had the expected 8 tab-separated fields. These rows still have something you might trip over:

  • Arkansas Junction and Bland: The coordinates are copied exactly as pasted. That means the same point appears three times in different formats, and the string contains invisible zero-width characters (U+FEFF) around the ` / ` separators. You may want to clean these before using them as data.
  • Baldy Town: Its coordinates use a different format from the other two (36° 37′ 26.32″ N, 105° 10′ 18.97″ W).
  • Pinos Altos (High Pines): “(High Pines)” was in the name column, not the other-names column, so I left it in name.
  • Kelly: The settled column was -, so I left it blank, even though the remarks say it was “Founded in 1866”. I didn’t fill it in.
  • Santa Barbara, San Marcial and Santa Rita: The settled and abandoned cells each hold two years, like “1851, 1853”. I kept each pair as one quoted value.
  • Glenrio: The county cell includes “(partially in Deaf Smith County, Texas)”. I kept that in county.
  • Jicarilla and White Oaks: The other-names cell was empty rather than -. White Oaks also has no remarks. Both end up blank either way.

I kept the original spelling and capitalisation everywhere, such as “Abandoned Site” vs “Abandoned site” and “early 1900s” vs “Early 1900s”.

The table was copied from Wikipedia on 11 November 2026 and pasted above the prompt.

Check the row count against the page, and spot-check three rows. Here the count was right, and the reply listed the cells it had to make decisions about: dashes treated as blanks, two years in one cell, a county cell that also names a Texas county. Those are the rows to read first. Keep the Wikipedia page’s URL and the date you copied it with the file; the list changes.

Take locations from a gazetteer

A gazetteer is an index of places with an identifier, names and coordinates for each one. For the United States, the Geographic Names Information System (GNIS) is the official one, and it keeps many abandoned settlements, usually with “(historical)” after the name. Its New Mexico file lists every named feature in the state, from towns to springs; other states are on the GNIS download page. This run was sent just the 1,601 populated places with the ghost-town CSV. Attach both and send this.

Match the towns against a gazetteer
I have attached two files: my CSV of New Mexico ghost towns and the USGS GNIS names file for New Mexico. Match each town to a GNIS record, using the town name and its other names. GNIS often marks abandoned places with "(historical)" after the name.

Add these columns to my CSV: gnis_id, gnis_name, gnis_county, latitude, longitude, match_note. Take the coordinates only from the matched GNIS record.

Accept a match only if the GNIS county is the same as the county in my CSV. If no record matches, or more than one does, leave the coordinates blank and list the candidates in match_note. Give me the updated CSV and a list of every row you left blank or were unsure of, with the reason.

Needs a tool that runs code: the GNIS file is too large to match by reading it. Attach your ghost-town CSV and the GNIS New Mexico file.

The rows it flagged Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I matched 46 of the 66 towns to a GNIS record in the same county and left 20 blank. The updated file is […]. Your original CSV is unchanged.

I had no way to run a script here, so I did the matching by reading all 1,602 GNIS records in chunks and comparing names by eye. It’s worth spot-checking a few rows.

Matching rules I used

  • A record matched if its name equalled the town name or one of its other names, with or without a trailing “(historical)”.
  • The record’s county also had to equal your county exactly.
  • Coordinates come only from the matched record’s decimal latitude and longitude.

Seven matches were on the “(historical)” form: Blackdom, Bonanza City, Dawson, Hagan, La Belle, Paraje and Santa Rita.

Blank rows that had candidates | Row | Reason | |—|—| | Bramlett (Hidalgo) | The only Bramlett record (899550) is listed under Socorro County, so I rejected it. Its coordinates (31.33, −108.84) look like they’re in the Hidalgo bootheel, so GNIS may have the county wrong. You might want to accept it by hand. | | Clairmont (Catron) | No exact name. GNIS has Claremont (898996) in Catron. It’s probably the same place, but the spelling differs, so I didn’t accept it. | | Gran Quivira (Socorro) | The only record (918196) is in Torrance County, so I rejected it. | | San José (Sierra) | There’s no Sierra record. There are four “San Jose” records (no accent), all in other counties: 899897 Eddy, 910633 San Miguel, 920836 Bernalillo, 928803 Rio Arriba. | | Glenrio (Quay…) | There’s no record named Glenrio or Rock Island. Your county cell isn’t a plain county name either. |

Blank rows with no record of that name at all: Alamocita, Aleman, Anaconda, Baldy Town, Canta Recio, Carpenter, El Ojo Del Padre, Gobernador, Mowry City, Pittsburg, Road Fork, San Albino, San Ygnacio de la Alamosa, Vinegaroon and Zapata. I checked their other names too.

Matched, but I’m unsure about these

  • Santa Barbara: Matched through its other name, Hatch (920610). That record is the present-day village, not the 1850s site.
  • Elephant Butte: The record (898770) is probably the modern city rather than the historic site.
  • Pinos Altos (High Pines): I matched on “Pinos Altos” and ignored the “(High Pines)” in your name cell. I rejected a second Pinos Altos in San Miguel County.

Matched, with a same-named record rejected for county: Lake Valley (another in San Juan), Paraje (another in Cibola), Tejon (a “Tejon (historical)” in Sandoval) and Shakespeare (its other name Mexican Springs matches a record in McKinley). Each one’s match_note gives the details.

Coordinates compared: Two rows have both your coordinates and GNIS coordinates. They differ by about 300 m for Arkansas Junction and about 200 m for Bland. Baldy Town has your coordinates but no GNIS match.

Same session. Because this tool couldn't run code, we attached only GNIS's 1,601 New Mexico populated places, few enough for it to read, rather than the full state file. The reply's 1,602 counts the file's header line. We checked all 46 matches against GNIS afterwards: every ID, name, county and coordinate agrees.

Read the rows it flagged before you read anything else. Ghost towns are hard to match for predictable reasons, and this run hit most of them. Clairmont is spelled Claremont in GNIS. Santa Barbara matched through its other name, Hatch, which is the modern village rather than the 1850s settlement. Bramlett’s only record is filed under a different county, though the tool thought its coordinates sat in the right one. Alamocita has no record at all; it is now under Elephant Butte Reservoir. The county column is your check: a match in the wrong county is the wrong place, however close the name. Each flagged row is a decision for you, not the tool.

Ask for the map

Attach the matched CSV, nm-ghost-towns-gnis.csv in this run, and send this.

Map the checked table
Make a map from this CSV as a single HTML file I can open in a browser. Use Leaflet with OpenStreetMap tiles and visible attribution.

Put a point at each row that has a latitude and longitude. Color the points by status and include a legend. Each point's popup should show the name, other names, county, years settled and abandoned, status and GNIS ID.

Below the map, list every town that has no coordinates, with its county and match note. Don't change, round or add to any value in the CSV. Tell me how many points you placed and how many towns are in the unlocated list.

Attach the CSV after you have decided the flagged rows yourself.

The ghost-town map Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I made the map as a single HTML file: […]

Counts

  • 46 points placed: every row that has both a latitude and a longitude.
  • 20 towns in the list without coordinates. The table under the map shows each one’s name, county and match note.

I haven’t opened it in a browser, so I haven’t seen it render. I also wrote the Leaflet integrity hashes from memory. If the map area stays blank, delete the two integrity="..." attributes in the <head> and reload.

How values are kept unchanged: The CSV is pasted into the HTML word for word and read when the page opens. Popups and the table show the original text as it is. Latitude and longitude are only turned into numbers to position the points; they aren’t displayed or rounded.

Things to know

  • Two status spellings share a color. The CSV has both “Abandoned site” and “Abandoned Site”, and I gave them the same color. The legend shows both spellings, and each popup shows the row’s own spelling.
  • Many points have no status. 20 of the 46 have an empty status, so they’re gray and labelled “No status in table” in the legend. The colored groups are Historic site (8), Abandoned site / Abandoned Site (7), Barren site (6), Neglected site (3) and Semi-abandoned site (2).
  • Empty fields: Where a popup or table field is empty, it shows “not given” in gray italics. That’s a page label, not a value from the CSV.
  • Map tiles: These are OpenStreetMap’s standard tiles, with the attribution in the bottom corner. If you open the file directly from disk and the tiles don’t load, run python3 -m http.server in that folder and open it at http://localhost:8000/nm_ghost_towns_map.html. OpenStreetMap sometimes refuses tile requests from pages opened straight from a file.

Same session, sent with the CSV as the previous step returned it; the flagged rows were left blank.

The file it described did not work. Opened in a browser, the map was blank and the page’s code spilled out as text.

A web page titled New Mexico Ghost Towns with an empty map area and JavaScript code printed as text below an empty table.

The first file, opened in Chrome.

Describe what you see and ask for a fix. You don’t need to know the cause.

Report what the browser shows
I opened the file in Chrome. The map area is blank, the table of towns without coordinates has headers but no rows, and a long stretch of the page's JavaScript code is printed as text below the table. Please fix it.

Describe what you see, not what you think the cause is. This is the follow-up sent in the recorded run.

After reporting what the browser showed Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I’ve fixed it. All three symptoms came from one mistake I made: a comment in the page’s JavaScript (line 136) contained the literal text </script>. A browser treats that text as the end of the script, wherever it appears. Here’s what that caused:

  • Blank map and empty table: The script was cut off partway through, so none of it ran.
  • Code printed on the page: Everything after that point was shown as ordinary page text.

I reworded the comment so it no longer contains that tag; nothing else changed. I also checked the rest of the script and the embedded CSV, and neither contains </script anywhere else. Your data and the map logic are exactly as before.

I haven’t opened the file in a browser to confirm the fix, so please reload it in Chrome. You should see 46 points and 20 rows in the table below the map. If the map is still blank, the next most likely cause is the integrity hashes I wrote from memory. Delete the two integrity="..." attributes in the <head> and reload. Chrome’s console (View → Developer → JavaScript Console) will show an “integrity” error if that’s the problem.

Same session, after the follow-up above.

Web map of New Mexico with 46 points colored by status, a legend, and the start of a table of towns without coordinates.

The fixed map: 46 towns placed from GNIS records, with the 20 unlocated towns listed below it.

Open the fixed map and click the points.

Click a few points and compare the popup with the row in your file. Look at the list of unlocated towns as well. They are part of the collection, and a map that dropped them would quietly claim the list was complete. Notice the gray points too: 20 of the mapped towns have no status because Wikipedia’s table gives none, and the legend says so rather than guessing.

Copy coordinates from a gazetteer record and keep its ID in the row. Have AI match names and flag doubts, then decide the flagged rows yourself.

3. Map photographs by their location data

A photograph can carry its own coordinates. Phones with location services on write the latitude and longitude into each image file, along with the date and time. That information, the file’s EXIF data, is the location. Nobody has to infer it.

In March 2026, Jonathan Seyfried, a PhD candidate in history at UNM, photographed street cats in the Marrakech medina on his phone. To try this step, download a sample of 20 of his photos (6 MB) and attach the ZIP, or attach a ZIP of your own phone photos. In a coding assistant, unzip it into your folder instead. The run below used the same 20 photos, so your results should match it. All 208 are mapped on Jonathan’s own site, Cats of Marrakech, and the photos are in his repository.

Attach your ZIP and send this.

Map a folder of photographs
The folder marrakech-cats contains photos taken on a phone. Read the location stored in each photo's metadata and make a map of them as a single HTML file I can open in a browser. Put a point at each photo. Clicking a point should show a small version of the photo, its filename and when it was taken. Build the small versions into the file so the map works without the photo folder.

Before making the map, save the locations as a CSV with filename, date_taken, latitude and longitude, so I can check them. Then tell me how many photos you placed and list any that had no location data.

Needs a tool that runs code, because the locations are stored inside the image files. Change the folder name to yours.

What came back Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I placed all 20 photos on the map. Every photo had location data, so none are missing. I haven’t opened the map in a browser, because the sandbox here blocks that. I did check that the file contains all 20 points with their small photos.

Files (both in the folder that contains marrakech-cats):

  • marrakech-cats-locations.csv has filename, date_taken, latitude and longitude for each photo. Latitude and longitude are decimal degrees to 6 places. I made the map from this file.
  • marrakech-cats-map.html is the map (392 KB). Clicking a point shows a small version of the photo (up to 320 px), its filename and when it was taken. The photos are built into the file, so it works without the photo folder.

Things to know:

  • It needs an internet connection. The map background and the mapping library load from the web when you open the file. The photos and locations are stored in the file itself.
  • Locations: all the points are within about 1.5 km of each other, in Marrakech’s old city (around 31.62° N, 7.99° W). That fits the folder name.
  • Times are local, with their UTC offset. The first 19 photos show +00:00 and the last one (22 March) shows +01:00. Morocco moves its clocks back an hour during Ramadan, which in 2026 ended around 19–20 March, so the jump looks correct. Because of that change, the last photo’s filename (…_065733…) is an hour behind its recorded time (07:57:33).

[…]

Sent with the 20-photo sample from this page. Like step 6, this run could run commands, limited to its own folder. The last line, a command for opening the file on a Mac, is cut. Every coordinate in the CSV matches the photos' GPS data, and the photos do record +00:00 for the first 19 and +01:00 for the last.

The reply gives a count, describes both files and explains the one oddity: the last photo’s filename is an hour behind its recorded time. A phone stores each photo’s local time along with its time zone, written as hours ahead of Greenwich time (UTC), and the last photo, taken on 22 March, says +01:00 where the others say +00:00. The tool’s explanation, that Morocco moves its clocks back an hour during Ramadan, is plausible, and it is exactly the kind of claim to check before you use photo times as evidence.

Street map of the Marrakech medina with orange points, and a popup showing two cats asleep in a cardboard box with the filename and the time 2026-03-19 11:34:53 +00:00.

The map the run made: 20 photos, with one popup open. Photos by Jonathan Seyfried.

Open the map. It is 400 KB because the photos are inside it. You can also download the CSV.

Once the locations are clear, the map is the easy part. One request turned a folder of photos into a working map with a popup for each, in under a minute. Not long ago, someone who didn’t code had to learn to pull coordinates out of image files, set up a mapping library and build a page around it, and that was often where a project like this stopped. A quick map now costs almost nothing, so spend your effort on what it rests on: the CSV of photos, coordinates and dates that you can open, correct and reuse. The map is one view of it.

Three things to check with your own photographs:

  • Whether the location survived. Messaging apps, social media and some export settings remove location data. Ask the tool to list any images it found without coordinates rather than skipping them.
  • How precise it is. Phone GPS can be off by several meters, and much more indoors or between tall buildings. For a street cat that hardly matters. For field photographs of a building or a grave marker, check the pins before treating them as evidence.
  • What the coordinates record. They are where the camera was, not where the subject was. A photo of a mountain taken from twenty miles away is mapped at the photographer’s feet.

Reading coordinates from a file is different from asking AI to work out where a photo was taken by looking at it. A model will offer a confident guess from architecture, plants or signs. Treat that as a lead to check against something you can cite, never as a location.

When your locations are clear, a quick map is one request away; it is no longer the hurdle. Ask for the coordinates in a separate data file too, with a list of every image that had none, so you can check, fix and reuse them.

4. Join county figures to county boundaries

The Census Bureau has been making county maps for well over a century. Its report on the 1910 census of New Mexico shades each county by its inhabitants per square mile, drawn and shaded by hand.

Two choropleth maps of New Mexico's 26 counties in 1910, shaded by inhabitants per square mile for total and rural population.

“Density of population of New Mexico, by counties: 1910.” Thirteenth Census of the United States, Volume 3: Population (1913), page 162. U.S. Census Bureau, public domain. Scan via IPUMS.

This step makes the same kind of map, a choropleth, from today’s figures. Steps 2 and 3 mapped points; a county is an area, so it needs a shape from a boundary file. Census figures and county shapes come in different files, so a county map starts with the join described in the introduction, and most of the decisions in this step are about it.

Two files: the figures and the shapes

The table has one row per county and no shapes. These are three rows of the Census Bureau’s 2024 county estimates, the file this run used, showing four of its columns:

STATE COUNTY CTYNAME POPESTIMATE2024
35 001 Bernalillo County 671747
35 013 Doña Ana County 229366
35 031 McKinley County 68945

The boundary file also has one row per county, but each row carries a shape. These are the same three counties in the Census Bureau’s county boundary file, which covers the whole country:

GEOID NAME ALAND geometry
35001 Bernalillo 3007611376 an outline of 132 coordinate pairs
35013 Doña Ana 9863137493 an outline of 194 coordinate pairs
35031 McKinley 14118189399 an outline of 229 coordinate pairs

The geometry column is the shape: latitude and longitude pairs traced around the border, ending where they began. This file is simplified for maps of the whole country, so Bernalillo’s border takes 132 pairs; a detailed survey boundary can take thousands. The other columns describe each shape. ALAND is the county’s land area in square meters, which a per-square-mile rate needs.

The boundary file comes as a shapefile, an older format that is still the most common for boundaries, and a shapefile is not one file. Unzip this one and you find seven. The .shp file holds the shapes, the .dbf file holds the columns, the .shx file is an index that connects the two, the .prj file says what coordinate system the numbers are in, and the .cpg file says how the text is encoded, which is what keeps the ñ in Doña Ana. The rest are documentation. The parts only work together, so keep them in one folder and attach the whole ZIP: a .shp on its own is a set of outlines with no names. GeoJSON, the other common format, puts shapes and columns in a single text file.

Joining the table to the shapes

A join lines up two tables by a column they both have, called the key. For each row of the table, the tool looks for the shape with the same key and attaches that row’s figures to it. Once every shape has its figure, the map can shade it.

The key has to match exactly, character for character, which is why names make poor keys. The table says “Doña Ana County”, the boundary file says “Doña Ana”, and other sources write “Dona Ana”. Thirty states have a Washington County. So every county has a code, the five-digit FIPS code: two digits for the state (35 is New Mexico) and three for the county. The boundary file has it ready as GEOID, 35013. The table splits it into STATE and COUNTY, so the join has to put 35 and 013 together first. Open either file in a spreadsheet and it may quietly turn 013 into 13, and then nothing matches.

A failed join doesn’t announce itself. A row that finds no shape is simply missing from the map, and a shape that finds no row is left blank or dropped. That is why the prompt asks for both lists of failures before any map is drawn.

You have met joins already. Step 2 joined the ghost-town list to GNIS by name, because the list had no codes, and that is why every match needed checking. Step 5 meets a harder case: a county name that stands for different shapes in different censuses.

Once the figures are joined, the map shades each county by its value, as the 1910 map does by hand.

Download county population figures from the Census Bureau’s county population totals, or use any table you have with a county and a number. This run used New Mexico’s rows from the 2024 estimates. Attach your table and send this.

Join county figures to county boundaries
I have attached a table of population figures for counties. Make a choropleth map of New Mexico's counties as a single HTML file I can open in a browser.

Shade each county by [population per square mile / percent change from 2020 to 2024]. Use Census Bureau county boundaries and join them to my table on the five-digit county FIPS code, not on county names.

Before drawing the map, list any county in the boundaries with no match in my table, and any row in my table with no match in the boundaries. Then tell me how you grouped the values into color classes, which colors and projection you used, and why. Show each county's name, figure and measure in a popup.

Attach your county table. Choose one measure from the brackets before sending.

The New Mexico county map Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I’ve made the map, but I haven’t opened it in a browser, and I couldn’t download the Census boundaries from here because I can only read and write files. So the page fetches them itself each time it opens. That means it needs an internet connection, and the matching below hasn’t been run against the live boundary data yet.

The file is […]

Matching your table to the boundaries

The page gets New Mexico’s counties (state code 35) from the Census Bureau’s TIGERweb service. It joins them to your table on a five-digit code made from your STATE and COUNTY columns. Those are kept as text, so leading zeros aren’t lost (35 + 001 → 35001). It prints both lists of unmatched records above the map before it draws the map.

  • Your table: 33 county rows. I left out the statewide row (SUMLEV 040, code 35000) because it isn’t a county.
  • What I expect: no mismatches either way. Your 33 codes are the same as the 33 current New Mexico county codes, including Cibola (35006) and Los Alamos (35028), which were created later than the others. The lists on the page come from the live data, so if anything doesn’t match, that’s what they will show.
  • One risk: I took the two TIGERweb web addresses from memory and haven’t tested them. If both fail, the page shows an error instead of a map. Let me know and I’ll change it to load a boundary file saved on your computer.

Values used

Percent change = (POPESTIMATE2024 − POPESTIMATE2020) / POPESTIMATE2020. Both columns are July 1 estimates, so it compares the same point in each year. I didn’t use ESTIMATESBASE2020, which is the April 1 starting figure. County values run from −5.02% (McKinley) to +6.17% (Torrance). The state overall grew 0.55%.

Color classes

There are six classes, each 2 percentage points wide, with 0% as a boundary between classes:

Class Counties
Loss of 4% or more 2 (Hidalgo, McKinley)
Loss of 2% to under 4% 10
Loss of under 2% 10
Gain of 0% to under 2% 5
Gain of 2% to under 4% 1 (Otero)
Gain of 4% or more 5 (Catron, Doña Ana, Sandoval, Torrance, Valencia)

Why this grouping: what matters most here is whether a county grew or shrank, so zero has to be a dividing line. Even 2-point steps on both sides are easy to read and compare, unlike quantile or natural-breaks boundaries such as “−1.37 to −0.47”. The classes don’t hold equal numbers of counties, which is accurate: most counties lost population. The legend shows how many counties fall in each class.

Colors

I used ColorBrewer’s 6-class red–blue diverging scheme, from #b2182b to #2166ac. Red means loss and blue means gain, and the colors get lighter toward zero. I chose it because the data runs in two directions from a meaningful midpoint, and this scheme stays readable for people with color blindness and in grayscale. Gray is kept for any county without data.

Projection

I used an Albers equal-area conic with standard parallels at 32.5°N and 36.5°N, centered on 106°W, which fits New Mexico closely. On a choropleth, the area of each county shapes how much attention it gets. An equal-area projection keeps those areas true, which Web Mercator (the usual web-map projection) doesn’t.

[…]

Sent with New Mexico's 34 rows from the Census Bureau's 2024 county estimates file, choosing percent change from 2020 to 2024. The popup section is cut.

Choropleth of New Mexico's 33 counties in red and blue by percent population change, under a panel reporting 33 of 33 counties matched.

The New Mexico map, with its join check printed above it.

Open the New Mexico map. It fetches the county boundaries from the Census Bureau when it opens, which takes a few seconds.

Check the list of unmatched counties first. New Mexico has 33 counties; a choropleth with a blank county usually means a failed join, not missing data. Here all 33 matched, and the tool left out the statewide row without being told to. Note also the decision it reported about the measure: the table has two 2020 figures, an April 1 base and a July 1 estimate, and it chose July. The step 6 run made the same choice and says how much the other one would change.

Rates, not counts

A map of raw population mostly shows where people live, and so does a map of almost any raw count: churches, newspapers, cases. Shade by a rate (per square mile, per thousand residents, percent change) so that large counties don’t win by size. The 1910 map at the top of this step does exactly that: inhabitants per square mile, not inhabitants. Look at the classes the tool chose as well. The same figures split into different ranges can make a county look average or extreme. Ask what it chose and why, then decide.

Change the scale and the base map changes

In the same chat, attach the national table and send this.

Draw the same measure for every US county
Now make the same map for every county in the United States, using the national table I have attached. Use an equal-area projection suited to the United States, with Alaska and Hawaii as insets.

Keep the same measure and join on FIPS codes again. List every county or county equivalent that failed to match, grouped by state, and explain any pattern in the failures before drawing the map.

Send this in the same chat, with a national county table attached.

The national county map Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I’ve built the national map, but I couldn’t run it or reach the Census Bureau from here, so neither the map nor the matching has been tested yet. The page fetches the county boundaries itself, checks the match, and shows the lists of failures grouped by state before it draws the map.

One change from the New Mexico version: the page doesn’t contain your data. When it opens, it asks you to pick or drag in us-county-population-2020-2024.csv. Copying all 3,144 rows into the page by hand could have introduced typos you’d never notice, and browsers won’t let a page open a file next to it on its own. If you’d rather have everything in one file, I can do that, but I’d need a way to copy the data automatically.

The file is […]

Matching failures I expect

I read the whole table. It has 3,144 county rows for the 50 states and DC, plus 51 state-total rows, which I left out. The codes are all current:

  • Connecticut uses its nine planning regions (09110–09190).
  • Alaska has Chugach (02063) and Copper River (02066).
  • The renamed counties are there: Kusilvak (02158) and Oglala Lakota (46102).
  • Bedford city, Virginia (absorbed into Bedford County in 2013) is gone, as it should be.

So I expect:

  • Table rows with no boundary match: none.
  • Boundaries with no table match: probably all in Puerto Rico (78 municipios) and possibly the island areas: American Samoa 5, Guam 1, Northern Mariana Islands 4, U.S. Virgin Islands 3. That depends on what the Census service includes, which I couldn’t check. These aren’t errors: the Census Bureau’s national county file covers only the 50 states and DC. They also fall outside this kind of U.S. map, so they wouldn’t be drawn anyway.

The page explains the common causes itself when it sees them. The most likely one is Connecticut, if old boundaries meet new codes or the reverse. Others it recognises are past Alaska, South Dakota, Virginia and Florida code changes, and missing territories. Anything else gets flagged as unexplained, to check for typos or lost leading zeros.

Measure

Same as before: percent change from POPESTIMATE2020 to POPESTIMATE2024, both July 1 estimates.

Color classes

There are eight classes split evenly around zero, with breaks at −10, −5, −2, 0, 2, 5 and 10%. The values run much wider than in New Mexico, from about −20% (Garza County, TX) to over +30% (Kaufman County, TX). Most counties sit within a few points of zero, so the classes are narrow near zero and wider at the ends. That shows detail where most counties are without hiding the extremes. Zero is still a dividing line, so gain versus loss reads at a glance. I avoided equal-count (quantile) classes for the same reason as before: their breaks would be odd numbers that are hard to read. The legend shows how many counties fall in each class, and the range and median.

[…]

Projection

I used the standard U.S. Albers equal-area projection, with Alaska and Hawaii in their own boxes. An equal-area projection keeps county sizes true within each part of the map. One trade-off: Alaska is shown at about 35% of the main map’s scale, so its boroughs look smaller than they really are. The note on the page says so.

[…]

Risks

  • I took the Census service addresses from memory and haven’t tested them. If both fail, the page lets you load a county boundary file from your computer instead.
  • The boundaries are simplified to about 500 m. Very small areas, such as some of Virginia’s independent cities, may show up as tiny slivers, and an extremely small one could disappear.

Same session, sent with all 3,195 rows of the estimates file, trimmed to the columns used. The colors and popup sections are cut.

At national scale the decisions change. A flat web map stretches the northern states and makes Alaska enormous, so national county maps use an equal-area projection with Alaska and Hawaii moved into insets. More than 3,000 counties also bring more failed matches. Connecticut replaced its counties with planning regions in 2022, so a boundary file and a data table from different years will not line up there. Ask for the unmatched list again.

Rather than type 3,144 rows into the page by hand, the tool made the page ask for the CSV when it opens. Its join check found exactly the failures the reply predicted: 91 boundaries in Puerto Rico and the island areas, which the estimates file does not cover.

A panel reporting 3,144 of 3,144 table rows matched and 91 unmatched boundaries, grouped by territory, with an explanation of the pattern.

The join check on the national map.

Choropleth of all U.S. counties in red and blue by percent population change from 2020 to 2024, with Alaska and Hawaii inset at lower left.

The national map, on an equal-area projection with Alaska and Hawaii as insets.

Open the national map. Opened from this site, it finds the national table beside it and loads it without asking; a copy saved to your computer asks you to choose the file. It also fetches more than 3,000 county boundaries from the Census Bureau, so give it half a minute. The join check comes first; the map is below it.

Compare the reply with the map’s legend. The reply says values run “from about −20% (Garza County, TX) to over +30%”; the map, which computes from the file, says −28.36% to +34.42%. The tool had read 3,144 rows by eye and missed Loving County, Texas, the least populous county in the country. Trust the numbers the code computed over the numbers the reply describes.

Join counties on FIPS codes and ask for a list of rows that didn’t match. Shade by a rate, and ask which classes and projection the tool chose before you accept them.

5. Extract historical census figures and map change

Historical population figures are often only available as scanned printed tables. The 1910 census report for New Mexico (a 30 MB scan; other states are on the IPUMS volume list) can’t be searched or copied as text: every figure is a picture of print. Turning it into a table is the step AI makes much faster.

Transcribe a table from the scan

Page 158 compares the territory’s four largest cities across every census in which each was counted.

Scanned table listing the populations of Albuquerque, Raton, Roswell and Santa Fe at each census, with the increase over the preceding census.

Population of cities, 1860–1910. Thirteenth Census, Volume 3 (1913), page 158. Public domain.

Attach a screenshot of the table, or download this one, and send this.

Transcribe a printed census table
Transcribe the table in this image as a CSV with these columns: city, census_year, population, increase_number, increase_percent, source_page.

Copy every figure exactly as printed. Write a minus sign as -, and leave a cell blank where the table has none. Use 158 for source_page. Don't calculate or correct anything.

Then check your transcription: for each city, subtract each population from the one after it and compare the result with the printed increase. List every figure you could not read with confidence and every place where your arithmetic disagrees with the table.

Attach a screenshot of the table on page 158 of the 1910 census report for New Mexico. Check every number against the scan before you use it.

The transcription and its checks Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I read the image from your working directory (the attachment hadn’t come through in the message itself).

city,census_year,population,increase_number,increase_percent,source_page
Albuquerque,1910,"11,020","4,782",76.7,158
Albuquerque,1900,"6,238","2,453",64.8,158
Albuquerque,1890,"3,785",,,158
Raton,1910,"4,539",999,28.2,158
Raton,1900,"3,540",,,158
Roswell,1910,"6,172","4,123",201.2,158
Roswell,1900,"2,049",,,158
Santa Fe,1910,"5,072",-531,-9.5,158
Santa Fe,1900,"5,603",-582,-9.4,158
Santa Fe,1890,"6,185",-450,-6.8,158
Santa Fe,1880,"6,635","1,870",39.2,158
Santa Fe,1870,"4,765",130,2.8,158
Santa Fe,1860,"4,635",,,158

The figures keep their printed commas, so cells that contain a comma are quoted. The oldest year for each city has blank increase cells, as in the table.

Arithmetic check: For each city I subtracted each population from the one after it. All 9 printed increases match exactly:

City Calculation Printed
Albuquerque 11,020 − 6,238 = 4,782 4,782 ✓
  6,238 − 3,785 = 2,453 2,453 ✓
Raton 4,539 − 3,540 = 999 999 ✓
Roswell 6,172 − 2,049 = 4,123 4,123 ✓
Santa Fe 5,072 − 5,603 = −531 −531 ✓
  5,603 − 6,185 = −582 −582 ✓
  6,185 − 6,635 = −450 −450 ✓
  6,635 − 4,765 = 1,870 1,870 ✓
  4,765 − 4,635 = 130 130 ✓

I also checked the percentages, which you didn’t ask for. Each one matches its increase divided by the earlier population, rounded to one decimal.

Figures I couldn’t read with confidence:

  • Albuquerque 1910, 76.7 percent: This is the one real doubt. The second digit could be a 6 or a 0, so the cell could read “70.7”. I entered 76.7 because 4,782 ÷ 6,238 = 76.7%. That means I used the arithmetic to settle it, so check this cell against the original.
  • Santa Fe 1890–1860 (6,185 / 6,635 / 4,765 / 4,635) and the −9.4 and 39.2 percentages: The print is small and the 6s, 8s, 5s and 3s are hard to tell apart. I read each one from the image without using arithmetic. All of them fit the printed increases, which supports the readings, but they’re still the least clear part of the scan.

Sent with a 150 dpi crop of page 158, the image shown above.

Check every number against the scan; with a table this small, that takes two minutes. The report gives you a second check: it prints the change from each census to the next, so you can ask the tool to verify each population figure against the printed difference. A digit misread as another will usually break that arithmetic.

This run got every figure right, and its one doubt is worth reading. Albuquerque’s 1910 percentage could be read as 70.7 or 76.7. The run saw a 150 dpi crop, but even at 400 dpi the scan is ambiguous. The tool entered 76.7 because the arithmetic gives 76.7. The prompt told it not to calculate or correct anything, so it bent that rule, but it said that it had used the arithmetic to decide, so you know which cell to check. The report’s own text gives a third check: “Roswell shows the highest rate of increase during the last decade, namely, 201.2 per cent, and Raton the lowest, 28.2 per cent, while Santa Fe shows a decrease of 9.5 per cent.”

Then map it. Four cities need four coordinates; take them from GNIS, as in step 2. This run was sent the checked transcription and the four GNIS records.

Map population change in four cities
Make a map from this CSV of city populations, 1860 to 1910, as a single HTML file I can open in a browser. Use the coordinates I supplied for each city.

Draw each city as a circle sized by population, scaling by area rather than radius. Add a control to step through the census years, and show a city only for years in which it has a figure. Each circle's popup should show the city, year, population and source page. Include a size legend and a source line: "Thirteenth Census of the United States (1913), vol. 3, p. 158."

Attach the checked CSV and the GNIS coordinates for the four cities.

The city population map Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I’ve made the map as a single HTML file, but I haven’t opened it in a browser, so I haven’t seen it running yet.

File: […]

What it does:

  • Data: Both of your CSVs are copied into the file unchanged and read when the page opens, so they’re easy to compare against your originals. Each city is placed at its latitude and longitude from your coordinates file.
  • Circles: Circle area is proportional to population, so the radius is proportional to the square root of the population. The largest figure, Albuquerque in 1910 (11,020), gets a 40px radius. Circles are pixel-based, so they stay the same size when you zoom.
  • Year control: It’s in the top right, with a slider, clickable year labels and Earlier/Later buttons. The map opens on 1910. A city appears only in years where it has a row, so 1860–1880 show Santa Fe alone, 1890 adds Albuquerque, and 1900–1910 show all four.
  • Popups: Each shows the city, year, population exactly as printed (e.g. “11,020”) and source page. Hovering a circle also shows the city name.
  • Legend: Nested circles for 10,000, 5,000 and 1,000, drawn on the same scale as the map, in the bottom left.
  • Source line: “Thirteenth Census of the United States (1913), vol. 3, p. 158.” appears word for word in the bottom right.

Things to know:

  • Needs internet: The page loads the Leaflet mapping library and OpenStreetMap base tiles online. With no connection you’ll get a blank map. If you need it to work offline, I can redraw it as a self-contained SVG with no base map.
  • Base map shows today’s places: The background shows present-day roads and boundaries, not the territory as it was in 1860–1910.
  • Albuquerque’s 1910 percent: The 76.7 I flagged last time isn’t on the map, since the popups don’t include the increase columns.

Same session, sent with the checked transcription and GNIS coordinates for the four cities.

Web map of New Mexico with orange circles sized by 1910 population at Albuquerque, Santa Fe, Raton and Roswell, a year slider and a circle-size legend.

The city map at 1910, with a control to step back through earlier censuses.

Open the city map and step through the census years.

The map makes visible what the table only records: the capital was shrinking while Albuquerque, Raton and Roswell grew. The same process scales to the report’s Table 1, which lists every precinct, town and village for 1890, 1900 and 1910. It runs to many pages, so extract one county first and check it before attempting the rest.

Notice when the counties changed

County figures over time raise a problem that town figures don’t. On page 159, the report explains why it could compare 1900 and 1910 for only six of its 26 counties.

Scanned paragraph listing eight New Mexico counties formed from parts of others between 1901 and 1909.

“The following territorial changes have been made in the counties of New Mexico since 1900.” Thirteenth Census, Volume 3 (1913), page 159. Public domain.

Eight new counties were carved out of others between 1901 and 1909. One of them, Leonard Wood, was renamed Guadalupe in 1905, and the report calls the earlier county “old Guadalupe”, which had a different shape. A county name is not a stable identifier across censuses. Join 1900 figures to 1910 shapes by name and Guadalupe gets the wrong population; join either to today’s 33 counties and the map is wrong in a way no one will notice from looking at it.

The Census Bureau’s answer was to combine counties into units that stayed the same across both censuses. Its map of growth draws those combinations with white dashed lines.

Two choropleth maps of New Mexico counties shaded by percent increase in population from 1900 to 1910, with dashed white lines grouping counties formed after 1900.

“Per cent of increase of population of New Mexico, by counties: 1900–1910.” Thirteenth Census, Volume 3 (1913), page 161. Public domain.

You can do the same, or use boundaries drawn for each census year. The Newberry Library’s Atlas of Historical County Boundaries has free boundary files for every state with the dates each shape was in force, and NHGIS (free with an account) pairs historical census tables with matching boundaries. Ask AI to find the changes before it maps anything. This run was sent the county names for each year, pasted above the prompt.

Find county changes before mapping
I want to map New Mexico county populations from the 1900 and 1910 censuses. Before making any map, compare the county names in the two years and tell me which counties were created, renamed, merged or had their boundaries changed between those censuses, and which existing counties lost territory to each new one.

For each change, say what source supports it. Then tell me which counties I can compare directly, which I need to combine to compare like with like, and what boundary files I would need for each year. Do not make a map yet.

Attach the county figures you have transcribed, or a list of county names for each census year.

The county changes it found Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I haven’t checked any sources in this session. I had no web access, so everything below comes from my own knowledge of New Mexico county history. Where I name a source, I’m saying where to confirm the point, not that I’ve confirmed it. The main source to check against is the Newberry Library’s Atlas of Historical County Boundaries (AHCB), New Mexico, which has a dated record of every county creation and boundary change with the session law that caused it.

1. Comparing the two lists

The 1910 list has 7 names that aren’t in your 1900 list: Curry, Luna, McKinley, Quay, Roosevelt, Sandoval, Torrance. Every 1900 name still appears in 1910, so no county disappears or merges between the two lists.

Check your 1900 data first. I believe McKinley County was created in February 1899, so it should already appear in the 1900 census. If your 1900 table really has no McKinley row, it’s either a transcription gap or McKinley’s people were counted under a parent county. Fix this before mapping.

2. Changes between the censuses (as I recall them)

County Created Took territory from How sure I am
McKinley 1899 (before 1900, see above) Mainly western Bernalillo; possibly part of Valencia Date: sure. Valencia’s share: not sure
Luna 1901 Grant, Doña Ana Sure
Sandoval 1903 Northern Bernalillo Sure about Bernalillo; there may have been small adjustments with neighbours
Torrance 1903 Several central counties, probably Valencia, Socorro, Lincoln, Santa Fe and San Miguel The exact list of parents needs checking
Quay 1903 Mainly Guadalupe; possibly a strip of Union or San Miguel Guadalupe: sure. Others: not sure
Roosevelt 1903 Chaves, Guadalupe Fairly sure
Curry 1909 Quay, Roosevelt Fairly sure

A rename that was later undone: I believe Guadalupe was renamed Leonard Wood County in 1903 and got its old name back in 1905, with boundary changes along the way. The name is the same in both censuses, but the territory isn’t. It also lost land to Quay and Roosevelt.

Smaller adjustments: The territorial legislature also moved lines between existing counties in these years, for example around Bernalillo and Santa Fe and in the southeast. I can’t list them reliably from memory. The AHCB chronology is the place to get the full list.

Second source for each change: The 1910 census report (Thirteenth Census, Vol. III, Population, New Mexico county table) prints 1900 figures next to 1910 ones. Its footnotes say when a county lost territory to form another (for example “part taken to form Luna in 1901”). That gives you an independent check on the AHCB from the Census Bureau’s own records.

[…]

Before I build anything, I’d check the list of parents for Torrance, Quay and McKinley, and the Guadalupe/Leonard Wood changes, against the AHCB. Those details decide whether Groups B and C stay separate. If you can download the AHCB New Mexico chronology or the NHGIS files, I can do that check from them.

Run with no tools at all. We supplied the county lists: 19 counties in 1900 and 26 in 1910, compiled from the report. Sections 3 and 4, on combining counties and boundary files, are cut.

Compare its list with the paragraph on page 159. The reply was candid that it worked from memory, and the comparison shows why that matters:

  • Leonard Wood. The reply says Guadalupe was renamed Leonard Wood and then renamed back. The report says Leonard Wood was a new county made in 1903 from parts of Bernalillo, Valencia and old Guadalupe, and renamed Guadalupe in 1905. The name returned with a different shape.
  • McKinley. The reply dates it to 1899, warns that it should already appear in the 1900 census, and names only Bernalillo and possibly Valencia as the counties it came from. The report says it was formed in 1901 from parts of Bernalillo, Rio Arriba, San Juan and Valencia, and counts it among the eight new counties. Check the Newberry atlas for which date applies to census day.
  • Torrance. The reply dates it to 1903 and leaves Bernalillo out of the counties it came from. The report says it was formed in 1905 and includes Bernalillo.
  • Rio Arriba. The report notes that part of Santa Fe County was annexed to Rio Arriba in 1902. The reply mentions unspecified line changes “around Bernalillo and Santa Fe” but not this one.

Its advice, by contrast, holds up: combine counties that changed, use boundaries from each census year, and check every change against the atlas. That is the same answer the Census Bureau reached in 1913. Anything a reply asserts that the report doesn’t mention, check in the Newberry atlas before you accept it.

Before mapping figures from more than one census, ask: “Which counties were created, renamed or redrawn between these years?” Then use boundaries from the year of each figure.

6. Make a map figure for publication

The checked tables from steps 2 to 5 can become a web map or a printed figure. A screenshot of a web map makes a poor figure: low resolution, map tiles designed for a screen, attribution requirements for the tiles, and colors that may vanish in grayscale. Ask for a figure instead.

Ask for the program, not the picture

Every map so far has been a web page: an HTML file that your browser runs each time you open it, fetching map tiles, drawing the points or counties and answering your clicks. That suits exploring. A publication needs something else: a fixed image that looks the same on screen, in a PDF and on paper.

So this step asks for a script instead of a map. A script is a short program, a list of instructions a computer carries out in order, and running it produces the figure. This one is written in Python, a programming language widely used for working with data. It relies on two free add-ons, called libraries, that other people have written: geopandas, which reads tables and boundary files and joins them, and matplotlib, which draws charts and figures. In plain terms, the script:

  1. reads your CSV and the boundary file;
  2. joins them on FIPS codes, as in step 4, and stops if any county fails to match;
  3. works out each county’s percent change from the figures in the CSV;
  4. flattens the map with an equal-area projection and shades each county by its class;
  5. adds the names, legend, scale bar and source line;
  6. saves the result as a high-resolution PNG and a PDF.

Why go to the trouble of a script, rather than asking for the image itself?

  • Every number comes from your file. The prompt rules out typing data into the script, so the figure can’t drift from the CSV.
  • You can make it again. Correct a figure in the CSV or change one setting, run the script, and the whole figure updates exactly.
  • The choices are written down. The projection, the class breaks and the colors are all in the script, so you can see how the figure was made, and so can anyone you share it with.

You don’t need to read the code to use it. A tool that can run code, like the one recorded here, runs the script and hands you the finished image. Otherwise it gives you the script and instructions, and you run it on your own computer, which needs Python installed. Either way, keep the script.

This run was sent the New Mexico county table from step 4 and the Census Bureau’s county boundary file (12 MB). Attach both, fill in the brackets and send this. In this run, the first bracket described percent change in population in New Mexico counties from 2020 to 2024, and the second gave the source line printed at the foot of the figure.

Ask for a print figure, not a screenshot
Write a Python script, using geopandas and matplotlib, that makes a print figure from the attached CSV and boundary file. The map should show [describe the map: e.g. population per square mile in New Mexico counties, 1910].

Requirements: 6.5 inches wide, saved as both a 300 dpi PNG and a PDF. No web map tiles. Shading that still reads in grayscale. A legend with the class ranges, a scale bar, county names where they fit, and a source line: "[source, e.g. Thirteenth Census of the United States (1913), vol. 3]". State the projection in a comment.

Read every value from the CSV; don't type any data into the script. Explain how to install what the script needs and how to run it.

Attach the checked CSV and the boundary file you used. Fill in the brackets. A tool that runs code will run the script for you; to run it yourself you need Python. Or ask for the same in R.

The figure Claude Opus 5.5 in Claude Code, fresh session · 2026-11-11

I wrote the script as nm_pop_change_map.py, ran it, and checked the output. The PNG is 1950 × 1770 px at 300 dpi and the PDF page is 468 × 424.8 pt. Both are exactly 6.5 × 5.9 in.

What’s on the map

  • Shading: six classes, with 0% as a class break, so each class is either all loss or all gain. Losses are oranges and gains are blues. The colours also get steadily darker from the biggest loss to the biggest gain, so they still read in order in grayscale. I converted the PNG to gray and the six shades are clearly different. The script checks this every time it runs and stops if two neighbouring colours would print too close to the same gray.
  • Legend: each class shows its range and how many counties fall in it. The lowest and highest limits (−5.0 and +6.2) come from the data. A note under the legend gives the statewide change (+0.5%), taken from the state row in the CSV.
  • Scale bar: in km and miles, in the empty space below the southern border.
  • County names: each name is placed only if it fits inside the county, trying a smaller size or two lines before giving up. 32 of 33 fit. Los Alamos is too small, so it’s left off the map and listed in the note.
  • Source line: exactly the text you specified.
  • Projection: Albers Equal-Area Conic on NAD83, fitted to New Mexico. The comment at the top of the script states this. I used an equal-area projection so each county’s shaded area matches its real size.
  • No typed data: every number comes from the CSV. The CSV and the boundary file are matched by county FIPS code, and the script stops with an error if any county doesn’t match.

Decision for you: the change is measured from the July 1, 2020 estimate to the July 1, 2024 estimate, so both ends use the same date. If you’d rather start from the April 1, 2020 estimates base, run with --base april2020. Most counties shift by a few tenths of a point. Some, like Catron, move more (+5.2% becomes +6.0%), but no county changes class.

Install

python3 -m venv .venv
source .venv/bin/activate
pip install geopandas matplotlib

geopandas installs pandas, shapely, pyproj and pyogrio with it, and pip provides prebuilt versions for macOS, Windows and Linux. If you use conda: conda install -c conda-forge geopandas matplotlib.

Run

Put the script, the CSV and the zip in the same folder. Leave the zip as it is; the script reads it directly. Then:

python nm_pop_change_map.py

This writes nm_population_change_2020_2024.png and nm_population_change_2020_2024.pdf to that folder. To use other paths or file names:

python nm_pop_change_map.py --csv data/nm.csv --boundaries data/cb_2023_us_county_500k.zip --out figures/fig1

To change the class breaks or colours, edit BREAKS and COLORS near the top of the script. The text in the PDF is kept editable. If the figure will have a separate caption, you can delete the two fig.text lines that draw the title and subtitle.

Like step 3, this run could run commands, limited to its own folder, so it ran the script and checked the output itself. We checked its figures against the CSV: the statewide change, the range of the classes and the Catron example are all right.

Print-style choropleth of New Mexico counties in oranges for population loss and blues for gain from 2020 to 2024, with county names, a legend giving each class and its number of counties, a scale bar in kilometers and miles, and a source line.

The figure the script produced: 6.5 inches wide at 300 dots per inch (dpi), a usual resolution for print, and also saved as a PDF.

Open the PDF or download the script that made it.

Compare this figure with the web map in step 4. Both measure from the July 1, 2020 estimate, and the figure prints that in its subtitle. The table also has an April 1, 2020 base, which would start every county from a different number. The reply flags this as a decision for you, says how much it moves the results (Catron County goes from +5.2% to +6.0%) and adds an option to switch. Make sure the measure on the figure is the one your text describes.

The install and run instructions at the end of the reply are for later, when you want to remake the figure yourself. If you haven’t used Python before, ask the tool to walk you through them on your own computer. Look at what the colors say, too. So that the figure reads in grayscale, they darken steadily from the biggest loss to the biggest gain, which makes the five counties that lost the most, such as McKinley and Hidalgo, the palest on the map. They can look like the counties that changed least. The reply describes the colors but not that trade-off. If the figure will be seen in color, ask for both ends of the scale to be dark. Open the PDF at full size. Check that every label is readable at the size it will be printed, that the legend’s classes match the data, and that the source line names your sources. Keep the script and the CSV with your manuscript files. When a reviewer or editor asks for a different shading or one more county, you change a line and run it again rather than rebuilding the map.

If you would rather not run code, Datawrapper makes county maps of the United States and of individual states from a pasted table with FIPS codes, and exports images. QGIS is free and does everything here, with more to learn.

Ask for a script that writes the figure from your CSV, not for a picture of the map. Keep the script, data and sources together so the figure can be remade.

What to take with you

Use these habits when you map your own material:

  • Know how your map was made. Keep a note of where the places, the numbers and the choices came from, including the choices the AI made, and keep it with the map.
  • Don’t spend your effort on the drawing. Once you know where things are, a first map takes one request. Spend the time you save checking the information behind it.
  • Ask where each location came from. A location should come from a source you can open, such as an official list of place names or the photo itself. One the AI supplied from memory is a guess.
  • Show what you couldn’t place. List the places that have no location beside the map, so the map doesn’t look more complete than your evidence.
  • Match places by ID number, not by name. The same place is spelled differently from one source to the next. Ask which ones failed to match, every time.
  • Compare like with like. Shade by a percentage or a figure per person rather than a raw total, which mostly shows where people live. Ask what color bands the tool chose, and why.
  • Use borders from the same year as your numbers. Counties were created, renamed and redrawn, and a county’s name doesn’t tell you which version you have.
  • Keep the code with the figure. If you can remake a figure from its data, you can fix it when someone finds a mistake.