Make simple country maps quickly using Google Sheets and My Maps
- Clone the example spreadsheet
- Fill in the first (Country) column with your countries
- Go to Google My Maps and create a new map
- On a new layer, select Import -> Google Drive -> Navigate to the spreadsheet you copied
- Select "WKT" for your Placemarks, and "Country" to title your markers
- Add another column showing data you want to represent
- Reimport the layer.
- Press the 3 dots on the layer
- Reimport and merge - Reimport - Replace all items
- Reselect your file
- Style your countries by the imported columns
NB: Your data has to be the first sheet in the spreadsheet. There's no option to select a sheet.
Google Sheets supports WKT format for displaying polygons. For convenience, I created a sheet called AllCountries, which has a list of countries and their corresponding WKT.
The first sheet just does a VLOOKUP and puts the data into a hidden column called "WKT". It has to be called exactly that for some reason 🤷
The borders are derived from here
Google Sheets only supports 50,000 characters in a cell, so larger countries are lower resolution.
It seems to me that maps are simple, reproducible and accurate, choose 2:
- There are a few simple webapps for this, but it's usually not easy to import from an easily editable file
- GIS tools are accurate and reproducible, but too complex for personal use
This aims to be simple and reproducible, but not worrying about things like borders being exactly right
You're probably using the wrong country name, click the "open data table" button to see what one(s) are wrong.
They are highlighted in red.
Then look for the name in the AllCountries sheet (or country-wkt.csv.)
Either use the name in there, or change it in AllCountries if you prefer another name.
Because this is designed to be simple. There may be a better source of short names, but this was a quick
remapping to be closer to their Wikipedia names (generated using ChatGPT).
If you don't like it, you can change the mappings and regenerate the output file yourself.
Clone the repo and use a different .geojson file
if you want to use different areas.
Or edit the mapping file to use different names.
Then go into the AllCountries tab on Google Sheets and reimport:
- Import
- Upload (select your new
output/country-wkt.csv
file) - Import location: replace current sheet and press Import data
Probably! This was a relatively quick and dirty attempt to tidy up an open source an even hackier version
that I've been using for a while.
Open an issue or better yet, a Pull Request!
//TODO