Update Post “2023-05-22-plotting-points-on-a-map-using-a-spreadsheet”
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Matt Cengia 2024-01-30 08:58:23 +00:00
parent ffe5f473bc
commit 7089ded235
1 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
---
title: "Plotting Points on a Map Using a Spreadsheet"
title: Plotting Points on a Map Using a Spreadsheet
date: 2023-05-22T00:22:48-07:00
author: mattcen
categories:
@ -8,17 +8,16 @@ categories:
- software
- tech
aliases:
- /google-sheets-map
- /2023/05/22/putting-points-on-a-map-using-a-spreadsheet
- /google-sheets-map
- /2023/05/22/putting-points-on-a-map-using-a-spreadsheet
---
A friend asked me recently about how to create a map with points on it using little more than the data in a spreadsheet.
This wasn't the first time I'd considered this problem, but I've never found a tool to make it simple to have a map that auto-updates when its source spreadsheet changes. Until now. After [asking some friends on the internet](https://aus.social/@mattcen/110408171045388467), I was informed that [National Map](https://nationalmap.gov.au), a website from Australia which is built using [Terria](https://map.terria.io/), should do the job nicely.
I've just determined that similar can be done on the [Terria](https://map.terria.io/) website, without the NationalMap branding, but with slightly reduced features.
Here's how.
# Here's how:
1. Create a Google Sheet that includes columns called 'lon' and 'lat', and store the longitude and latitude of each row's data point in these columns. The expected datum is WGS84
2. In Google Sheets, go to File -> Share -> Publish to web
@ -35,4 +34,4 @@ Here's how.
In NationalMap, you can also click the kebab menu button beside the data on the left pane, and select Edit Style, to change how your data looks on the map, but I've not played with this feature much, so using it is left as an exercise to the reader.
If you're more interested in hosting your own map (e.g. on GitHub Pages) using the contents of a Google Sheet, check out [Steve Bennett](https://mastodon.social/@SteveBennett)'s [Community map template](https://github.com/stevage/community-map). At time of writing, it hasn't been updated since mid-2021 but it's probably simple enough (especially if you know Vue.js) to update/adapt.
If you're more interested in hosting your own map (e.g. on GitHub Pages) using the contents of a Google Sheet, check out [Steve Bennett](https://mastodon.social/@SteveBennett)'s [Community map template](https://github.com/stevage/community-map). At time of writing, it hasn't been updated since mid-2021 but it's probably simple enough (especially if you know Vue.js) to update/adapt.