Build Your Own Curated City Map
You can have your own curated city map, with your favourite cafés, temples and hidden gems, running on a free website within an afternoon. No servers, no API keys, no monthly fees. All you need is a Google Sheet, two folders on GitHub Pages and a small settings file.
Instead of a long list of tips in a chat message, you share one link, like rcsmit.github.io/chiangmai. Each map gets:
- Layers you can switch on and off (Yoga, Coffee, Vegan, Temples, whatever you like), each with its own colour
- Search, plus optional Status and Region filters
- Popups with address, website, your own remarks and a precise Google Maps link
- “My location”, “Show all” and “Show names on map” buttons
- A print version with numbered pins and a legend, plus an optional QR code
- An SVG export you can open in Illustrator, Affinity, Inkscape or Figma to design a printed poster map
The best part: you edit the map by editing a spreadsheet. Add a row, reload the page, and the place is on the map. Here is how to build one, step by step.
Step 1: Set up the Google Sheet
The sheet is your database. Every row is a place, every tab has a job. Create a new Google Sheet and add two tabs.
Tab MASTER: your places. Put these headers in row 1. Only Layer and naam are really needed; the rest is optional.
| Column | What goes in it | Example |
|---|---|---|
Id | Optional number | 12 |
Layer | The category, which becomes a layer on the map | Vegan |
naam | The place name, or a pasted Google Maps link | Goodsouls Kitchen |
address | Shown in the popup | 12 Ratvithi Rd |
LAT | Latitude | 18.7932 |
LON | Longitude | 98.9821 |
website | Shown in the popup | goodsouls.example |
remarks | Your own tip, shown in the popup and the list | Try the jackfruit burger |
Status | Optional, adds a Status filter | TODO |
Region | Optional, adds a Region filter | Old City |
The column order does not matter; the header names do. Is your sheet in another language, or do you prefer name over naam? You can rename every column in the config with fields (more on that in step 2).
Tab LAYERS: descriptions (optional). Columns Layer, Description and Source. The description appears as a tooltip when you hover a layer in the sidebar, and above that layer’s block in the place list. The Source column is the right spot to credit where the data came from, for example “© OpenStreetMap contributors”.
Share it. Click Share → General access → Anyone with the link → Viewer. The map reads the sheet as CSV straight from Google, so it must be public to read. (It is never writable through the map.)
Copy the sheet id. That’s the long code in the address bar between /d/ and /edit:
https://docs.google.com/spreadsheets/d/1AbCdEfGh...XyZ/edit#gid=0
^^^^^^^^^^^^^^^^ this part
You’ll paste that id into the settings file in a minute.
Step 2: Two folders on GitHub Pages
GitHub Pages hosts static websites for free. If your GitHub username is jane, create a repository named exactly jane.github.io. Turn on Pages under Settings → Pages (deploy from the main branch). Every folder in that repository becomes a web address: the folder rome/ turns into https://jane.github.io/rome/.
The trick of this setup is a clean split. One engine, many cities.
jane.github.io/
citymap/ <- the engine, upload once
citymap.js all the code
citymap.css all the styles (colours and fonts are variables)
chiangmai/
index.html only the settings for Chiang Mai
rome/
index.html only the settings for Rome
Folder 1: citymap/. Upload citymap.js and citymap.css here and never touch them again. When the engine gets a new feature, every city map gets it at once.
These files are here: https://github.com/rcsmit/rcsmit.github.io/tree/master/citymap
Folder 2: one folder per city. It holds just one small index.html with a settings object. Everything else, the sidebar, the map, the filters, is built by the engine. Here is a complete example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<title>Chiang Mai</title>
<style>html{background:#faf6f0}</style>
</head>
<body>
<script>
// version = "20261125-130000"
window.CITYMAP_CONFIG = {
name: "Renato in Chiang Mai",
accentWord: "in", // shown in italic gold in the title
tagline: "Vegan food, temples & cafés",
city: "Chiang Mai", // added to Google Maps searches
center: [18.7883, 98.9853], // [lat, lon], required
zoom: 14,
sheet: { id: "PASTE_YOUR_SHEET_ID_HERE" },
theme: { accent: "#2f7d5b", gold: "#d9a441" },
storageKey: "chiangmai", // one per city
defaultLayers: "all",
qr: { enabled: true }
};
</script>
<script src="../citymap/citymap.js"></script>
</body>
</html>
A real live example can be found here: https://github.com/rcsmit/rcsmit.github.io/tree/master/chiangmai
A few things worth knowing:
centerandsheet.idare the only required settings. Find the centre by right-clicking a spot in Google Maps; the first line of the menu shows its coordinates.../citymap/citymap.jsworks because the city folder andcitymap/sit side by side on the same domain. Hosting the city elsewhere? Use the full addresshttps://jane.github.io/citymap/citymap.js.storageKeykeeps each map’s saved preferences (map style, “show names”) apart. Give every city its own.- Your sheet uses other column names? Add
fields: { name: "Name", lat: "Latitude", lon: "Longitude" }. - A Dutch map? Every text on screen can be translated through
strings, e.g.strings: { placesCount: "{n} plaatsen", loadingMap: "Kaart laden…" }. - The little
<style>line paints the page in your background colour before the engine arrives, so nothing flashes white.
The README lists every option: colours, fonts, the place list on the right (listPosition: "right"), clustering, the default map style and more.
Commit, wait a minute of two for GitHub to publish, and open https://jane.github.io/chiangmai/. You’ll see a short loading screen with a spinner, then your map.
Step 3: Fill the sheet (the fun part)
An empty map is no fun. There are three ways to get places in, and you can mix them freely.
Option A: paste Google Maps links
The laziest method works surprisingly well. Find a place in Google Maps, copy the address from the browser bar, and paste the whole link into the naam cell. That’s it. The engine decodes the link:
- the part after
/maps/place/becomes the place name - the
!3d…!4d…part holds the exact coordinates, which fillLATandLONwhen those cells are empty - the popup’s Google Maps link is rebuilt cleanly, without tracking codes
One catch: short share links like maps.app.goo.gl/… can’t be decoded in the browser. Open them first, then copy the long address.
Prefer clean data in your sheet? My little helper page Maps Links naar TXT does the same in bulk. Paste a stack of links, one per line, and get name;lat;lng back, ready to paste into the sheet (use Data → Split text to columns with ; as separator). It writes decimal commas, which the map reads fine.
Option B: let Claude do the research
This is where it gets really fast. Claude can look up places, find their coordinates and write the descriptions for you, in your own tone. A prompt like this works well:
Find 15 good vegan restaurants inside or near the Old City of Chiang Mai. For each, give me a row with these tab-separated columns: Layer, naam, address, LAT, LON, website, remarks. Layer is always “Vegan”. Write remarks of max. 20 words in a friendly, personal tone: what to order and when to go. Check that each place is still open, and give me the Google Maps link of each place as a final column so I can check it.
Paste the result straight into your MASTER tab. Tab-separated text lands in the right columns by itself.
Claude is also great for the polishing work:
- Rewrite your own rough notes (“good coffee, wifi ok, crowded weekends”) into a short, lively remark
- Translate all remarks for a Dutch, German or Italian version of the map
- Fill gaps, such as missing addresses or websites for places you already listed
- Write layer descriptions for the
LAYERStab
One honest warning: always check the coordinates. A language model can be confidently wrong about a pin by a few streets, and places close down. Asking for the Google Maps link per row makes checking quick. Best of all: open the map, switch on Show names on map, and look whether everything lands where you expect.
Option C: bulk-import places with Overpass Turbo
Want every temple, drinking-water point or viewpoint in town? Then don’t type them, query them. OpenStreetMap is the free world map made by volunteers, and Overpass Turbo is a website that lets you search it by type of place.
Places in OpenStreetMap carry tags, like amenity=cafe or tourism=viewpoint. Some handy ones:
| You want | Tag to search |
|---|---|
| Cafés | amenity=cafe |
| Buddhist temples | amenity=place_of_worship + religion=buddhist |
| Vegan food | diet:vegan=yes or diet:vegan=only |
| Ice cream | amenity=ice_cream |
| Parks | leisure=park |
| Viewpoints | tourism=viewpoint |
| Museums | tourism=museum |
| Drinking water | amenity=drinking_water |
Not sure about a tag? Look it up on the OpenStreetMap wiki, or ask Claude: “Which OSM tags do I use for co-working spaces?”
The easy way: the Wizard. Open Overpass Turbo, pan the map to your city, click Wizard, type for example amenity=cafe and press build and run query. The places appear on the map.
The spreadsheet way: ask for CSV. Replace the query on the left with this one, zoom the map to your area and press Run:
[out:csv(name, ::lat, ::lon, "addr:street", "addr:housenumber", website; true; ";")][timeout:60];
nwr["amenity"="place_of_worship"]["religion"="buddhist"]["name"]({{bbox}});
out center;
What the lines do:
out:csv(…)asks for a table instead of map data, with these columns, a header row (true) and;between the valuesnwrsearches points, buildings and areas at once, and["name"]skips places without a name({{bbox}})limits the search to what you see on the map. Prefer a city by name? Put{{geocodeArea:Chiang Mai}}->.a;above it and use(area.a)insteadout centergives buildings and areas one point in their middle, so every row gets coordinates
Open the Data tab on the right, select everything and copy it. Paste it into a new tab of your sheet and split it on ;. Then rename the headers to match the map: name → naam, @lat → LAT, @lon → LON. Add a Layer column (“Temples”), move the rows into MASTER, and done: fifty temples on your map in five minutes.
Two tips:
- Curate after importing. A raw dump is a database, not a recommendation. Delete what you would never send a friend to, and let Claude write remarks for the ones you keep.
- Give credit. OpenStreetMap data is free under the ODbL licence, on one condition: mention “© OpenStreetMap contributors”. The
Sourcecolumn of theLAYERStab is the perfect place for it.
Step 4: Export to SVG and design a poster map
This is my favourite feature. One click on ⬇ SVG export in the sidebar downloads all places of the active layers as a vector file. Open it in Illustrator, Affinity Designer, Inkscape, Figma or Gravit/Corel Vector, and every place is an editable object, sorted into neat layers. Perfect for a printed poster, a flyer for your guesthouse or a hand-drawn-style map.
What you get
Every map layer (say Vegan) becomes its own set of layers in the design program:
| SVG layer | What’s in it |
|---|---|
Vegan points large r9 | A dot per place, radius 9 |
Vegan points medium r7 | The same dots, radius 7 |
Vegan points small r5 | The same dots, radius 5 |
Vegan numbers | A number centred inside each dot |
Vegan names | The place names next to their dots |
Vegan list | One text block: 1. Goodsouls Kitchen, 2. …, to the right of the map |
| Reference points | Optional crosses for lining up with a base map |
All three dot sizes are in the file. Pick the size that suits your design and hide or delete the other two. The numbers match the printed map: 1, 2, 3… through the layers in sheet order, so the dot labelled 7 is always line 7 of the list. Names already avoid each other: each one tries right, left, above and below its dot and takes the first free spot.
How to use it
- Set the filters first. The export takes exactly what the map shows: the active layers, plus your search, Status and Region filters.
- Choose the zoom. The file is drawn at the current zoom level, 1 SVG unit = 1 screen pixel. Zoom in further and the points spread out, which leaves more room for names.
- Click ⬇ SVG export and open the file.
- Style it. Change colours, swap the dots for icons, pick a font, move names that need a better spot.
Lining it up with a base map
Now comes the real part: putting the Points of Interests on a map.
I wrote already how to make a basemap: How to make beautiful maps
The SVG holds your places, not the streets. To put them on a map background, add referencePoints to the config: a few spots with known coordinates, such as the four corners of Chiang Mai’s old-city moat.
referencePoints: {
name: "Moat corners",
points: [
{ name: "NW – Hua Lin", lat: 18.795672, lon: 98.978594 },
{ name: "NE – Si Phum", lat: 18.7952, lon: 98.99362 },
{ name: "SE – Katam", lat: 18.781558, lon: 98.9927394 },
{ name: "SW – Ku Hueang", lat: 18.78203, lon: 98.97771 }
]
}
These appear only in the SVG, as small black crosses on their own layer. Place a screenshot of the map (taken at the same zoom) or any base map underneath, then scale and move it until the four corners sit on the crosses. Everything else lines up by itself. A comment at the top of the file also records the zoom level and the exact pixel position of the top-left corner, for the purists.
The file is plain SVG 1.1, with every layer as a top-level group named after it. No CSS, no special extensions. That’s why even the stricter programs open it without complaints.
Step 5: Share it
Your map is live. A few extras make it even easier to pass around.
Deeplinks. The address bar always follows your selection, so you can share a specific view:
…/rome/?layer=Gelatoopens with only the Gelato layer on…/rome/?layer=Gelato,Pizzaopens two layers?status=Openand?region=Northpreselect those filters
Send a friend who only cares about ice cream the Gelato link. Mistype a layer name and the map shows a friendly warning instead of an empty screen.
QR code. With qr: { enabled: true } you get a QR code button. It encodes the map with the layers you have switched on, and you can download it as an SVG. Ideal for a guesthouse wall or the back of a flyer.
Print. The print button swaps the dots for numbered pins and adds a legend below the map, with the QR code in the corner when you’ve enabled it. Print on paper, or save as a PDF.
A home page for all your maps. Once you have a few cities, add an index.html to the root of your repository: a grid of cards, one per city. Each card needs a folder name, a display name and a thumbnail at img/<folder>.png:
var CITIES = [
{ slug: "rome", name: "Rome" },
{ slug: "hamburg", name: "Hamburg" },
{ slug: "berlin", name: "Berlin" },
{ slug: "chiangmai", name: "Chiang Mai" }
];
No thumbnail yet? The card simply shows the city name. Every city map can link back to this page through the ALL CITYMAPS banner in its sidebar: point it at your own home page with allMapsLink: { url: "https://jane.github.io/" } (an empty url hides the banner).
Your checklist
- Google Sheet with a
MASTERtab (and optionallyLAYERS), shared as Anyone with the link → Viewer citymap/folder withcitymap.jsandcitymap.csson GitHub Pages- A city folder with an
index.htmlholdingcenterandsheet.id - Places added: Google Maps links, Claude research, or an Overpass import
- Coordinates checked on the map
- A shareable deeplink, a QR code, or a poster made from the SVG export
That’s it: a spreadsheet, two folders and a bit of curiosity.
Too complicated or no time? I can do it for you! Contact me!
