Protomaps says self-hosting map tiles is now cheap and easy
Writing on his blog, Bruce Roettgers explains that the PMTiles format from the Protomaps ecosystem packs the entire world map into one file that can sit in object storage, with tiles read on demand through HTTP Range requests, which fetch only part of a file, and served through a CDN. His estimate: copying the 139GB world map to five continents costs about $5 a month in storage; bandwidth on Bunny.net is about $0.01 per GB, and at $0.05 per thousand map loads it may be roughly 100 times cheaper than Mapbox, which charges $5 per thousand loads beyond its free tier. The post also covers uploading with rclone, configuring CORS and caching, and capping per-request download speed to stop people from pulling the whole file, with the front end embedded via MapLibre GL and the pmtiles package. The figures are the author's own one-off estimates, not systematic measurements; heavy users may pull tens of MB, and costs vary with usage.
Map tiles, the small pieces a map is cut into and loaded on demand, have traditionally been hosted either by commercial services such as Mapbox and Google Maps or by a self-built tile server. PMTiles is a single-file archive format proposed by the Protomaps project. It packs a whole tile pyramid into one file, and the client fetches only the needed pieces through HTTP Range requests, so the file can sit directly in object storage such as S3 without a dedicated tile backend.
For developers on a tight budget who worry about traffic spikes running up bills, this approach turns maps from per-request billing into storage and bandwidth billing, at the cost of maintaining storage, CDN configuration and hotlink protection with rate limiting yourself. If a project needs high-resolution satellite imagery, commenters point out that the data quickly grows to hundreds of TB, and the single-file-in-object-storage approach stops being worthwhile.
One commenter said he switched to Protomaps after being shocked by a Google Maps bill, and finds running costs very low, themes customisable and setup easy. Another developer, who runs Cartes.app, said MapTiler quickly climbed to €150 a month, and hosting with Protomaps now costs almost nothing, but warned that once self-hosting, you cannot resist stuffing more custom content into the map. Others noted that base map data is small and suits this kind of hosting, while high-resolution satellite imagery grows quickly with zoom level and becomes large and expensive.