logoalt Hacker News

neomantra • yesterday at 10:01 PM • 3 replies • view on HN

We're doing something like this behind Cloudflare R2, same concept of owning the map infra (for privacy and access-control) and reducing load on public infrastructure.

If you are into this stuff, you can view PMTiles from the CLI with "gloss", or try to drag-and-drop on its web interface [1]. It seems large tiles (>128M) and some raster formats are failing; plus it would be nice to load from URL there. Will fix that...

(AI warning). ntmaps [2] is a Golang library that lets you use different tile providers, deployable in terminal or browser. ntplaygrounds [3] uses that and nt3d and ntactor to make a city simulation. Data is pulled from OpenStreetMap in those.

[1] https://nimbleterminal.com/gloss/app.html [2] https://nimbleterminal.com/ntmaps [3] https://nimbleterminal.com/ntplaygrounds


Replies

jamessb • yesterday at 10:40 PM

> If you are into this stuff, you can view PMTiles from the CLI with "gloss", or try to drag-and-drop on its web interface

The official PMTiles viewer [1, 2, 3] is also pretty good.

[1]: https://pmtiles.io/

[2]: https://github.com/protomaps/PMTiles/tree/main/app

[3]: https://protomaps.com/blog/new-pmtiles-io/

cldellow • yesterday at 10:26 PM

R2 is amazing for this.

Cloudflare, generally, is amazing for this, actually. It serves my personal hiking map for about $2/mo, using R2, D1 and Workers.

Building the map itself is free via GitHub Actions.

It's bonkers how the map world has changed over the last 20 years.

➕ show 2 replies
tjwebbnorfolk • yesterday at 11:31 PM

same, we use pmtiles on R2 for landstats.com parcel map. it's very easy to set up and cheap to serve

and we have a CF worker than turns them into rasters on the fly if that's how people want to get them