Self-hosting map tiles with Protomaps: cheap and easy, a guide
The article is a guide by Bruce Roettgers, a Computer Science student at ETH Zurich, on hosting his own map tiles. He came across Protomaps while researching his project Mapboard. The article notes that commercial map APIs become very expensive for non-commercial projects that go viral, for example Mapbox charges $5 per 1k map loads after the free tier.
PMTiles[1] is a tile format that ships as a single file and is read through HTTP Range requests[2], so it can be uploaded to a storage bucket and served by a CDN[3] with little extra work. The world map can be downloaded from the build page, or the CLI can extract only a bounding box or specific zoom levels for a smaller file. The author uses Bunny.net, which supports Range requests and is headquartered in the EU. He estimates that storing the 139GB world map with 5x replication costs about $5 per month, and that loading a map of Europe zoomed in on a city transfers about 5MB, or $0.00005.
For uploading, he recommends a storage zone with S3 compatibility, because the HTTP API timed out after 15 minutes for him, and he uses rclone[4] to stream the file. He also suggests limiting embedding with allowed referrers, enabling "Optimize for large object delivery", and limiting download speed to 10kB/s after 10MB in a single request. Finally, the tiles are embedded in a website with MapLibre GL and the pmtiles npm package.
Read the original bruceroettgers.euDiscussion
Discussion
Commenters describe similar setups: one serves tiles from Cloudflare R2 to keep control over privacy and access, and another moved from Maptiler to Protomaps because the bills reached 150 € per month. One commenter notes that high-resolution satellite imagery becomes very large at high zoom levels. Asked which clients work with this approach, commenters named gloss, a CLI and web viewer for PMTiles that had trouble with tiles above 128M, and ntmaps, a Golang library that works in a terminal or browser.
Sources
-
Bruce Röttgers
Protomaps: Self-hosting map tiles has gotten cheap and easy
-
KRGeekNews KO
Protomaps: 지도 타일 셀프 호스팅이 저렴하고 쉬워졌다



