Now for actually integrating it, I've been wanting to rebuild my personal website (again) for a while now and @astro.build has looked interesting and content collections could work nicely for storing the JSON of the routes alongside a markdown file for the content
28.02.2025 18:22 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
Ended up just going with expanding the bounds by a fixed amount for now, might look at detecting aspect ratio of the map and generating the bounds based on that at some point but this works pretty well
28.02.2025 18:20 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Started working on getting bounds working tonight so that you can't pan way away from the route, bbox in turfjs worked great for getting the bounding box, but because the window I'm previewing it in has a wide aspect ratio it was fixed super zoomed in, expanding the bounds fixed this but not ideal
17.02.2025 18:16 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
A map of Northumberland with a red line showing my route
And it worked, route now showing on the embed, now I just need to do some tidying up and to work out the best way to store the routes as they're arrays with hundreds of points
16.02.2025 20:59 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
The data exported from geojson.io isn't quite what mapbox is expecting, the main data is in the "features" key out of geojson.io but the "data" key is expected, easy to change because the rest of the data is the same
16.02.2025 20:41 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
A map showing a straight black line overlaid on a wiggly orange line
Though saying that there isn't a snap to path option, it uses the existing snap to path that OS maps has done but isn't perfect, so the route (black) doesn't exactly follow the paths on the map which is annoying but not the end of the world
16.02.2025 20:31 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
Now getting the routes to show on top of the map, OS Maps has GPX export and geojson.io imports those and gives GeoJSON back, and I can clean up the route in there too which is helpful
16.02.2025 20:23 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
First step, how to embed any kind of map on my website, mapbox seems the obvious choice for this, it's a bit worrying that if too many people load the page I'll end up getting charged, but it's a pretty high limit so hopefully not an issue
16.02.2025 20:22 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
New mini project: Showing my walking routes exported from OS Maps on my website, doing a thread on it, so I remember what I did when I blog about it
16.02.2025 20:20 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
A little intense about computers and languages.
She's sorry, but not as sorry as she should be.
Official page for Newcastle University UK, a founding member of the Russell Group of Research intensive universities, and a Global Top 140 university. #WeAreNCL
๐ป Designer & Product Manager.
๐ธ๏ธ Now: Web Platform @ Igalia. Prev: Microsoft Edge.
๐ Author of Design for Developers.
๐ฎ Sassy web witch & actual witch.
๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ Seattle gal in England.
๐ @jhey.dev
https://seaotta.dev
https://rolldown.rs/
Fast Rust-based bundler for JavaScript, designed to power @vite.dev, developed by voidzero.dev
I mostly post on X: x.com/adamwathan
The open source AI code editor
professional magic: the gathering player
https://www.instagram.com/thewheatgerm/
kickinโ it in the Snack Zone
The AI-powered developer platform to build, scale, and deliver secure software.
infinite canvas / http://tldraw.com / http://tldraw.dev / https://discord.tldraw.com/bsky
A ship in harbor is safe, but that is not what ships are built for.
creator โ @sli.dev โข @unocss.dev โข @vueuse.org โข @vitest.dev โข elk.zone
core team โ @nuxt.com โข @vite.dev โข vuejs.org
maintainer โ @shiki.style โข eslint.style
he/him โ antfu.me
Fast, disk space efficient package manager
pnpm.io
Senior Engineer working on Polaris at Shopify
Previously: @zeroheight.com, Nord Design System, @ghost.org.
Clients: Google, @buffer.com and @netlify.com.
[he/him]
https://darn.es
https://designsystems.wtf
#DesignSystems, #WebComponents & #Frontend
โ๏ธ Sir Tan @TanStack.com ๐ TypeScript ๐ Web โ๏ธOpen Source Software๐กUI/UX/DX ๐ผCo-Founder @NozzleIO ๐จโ๐ฉโ๐งโ๐ฆ@Ch_JesusChrist
DevRel at @deno.land
Late-blooming choir boy.
Eater of foods.
https://philhawksworth.dev
he/him
programming and exclamation marks
blog: jvns.ca
zines: wizardzines.com
The Whiteboard Guy @warp.dev