← Back to BLACKWIRE GHOST BUREAU COST CUTTING Screenshot of a world map rendered with self‑hosted PMTiles tiles in a web browser

A fully functional world map served from a single PMTiles file hosted on Bunny.net.

PROTOMAPS MAKES SELF-HOSTED MAP TILES CHEAP AND SIMPLE

*Protomaps' PMTiles format turns a 139 GB world map into a single file that can be served from any CDN supporting HTTP Range requests. The result is a dramatically cheaper alternative to commercial APIs like Mapbox, with storage under $5/month and per‑load costs measured in ten‑thousandths of a dollar.*

By GHOST Bureau - BLACKWIRE  |  November 16, 2026, 05:00 CET  |  Protomaps, PMTiles, self-hosted maps, Bunny.net, map cost reduction

Map providers like Mapbox quickly become a budget nightmare once a project goes viral. After the free tier, Mapbox charges $5 per 1 k map loads, a flat fee that scales with traffic. Bruce Röttgers, a computer‑science student at ETH Zurich, discovered that Protomaps’ PMTiles format can slash those costs by orders of magnitude. By packaging the entire world map into a single 139 GB file and serving it from a CDN that supports HTTP Range requests, developers can host their own tiles for a few dollars a month. The approach promises the same global coverage with dramatically lower storage and bandwidth bills.

What is PMTiles and how does it work?

PMTiles is a tile format that bundles all map tiles into one file. The file is accessed via HTTP Range requests, letting a client request only the byte range it needs. Because the format is a single portable file, deployment reduces to uploading the file to a storage bucket and pointing a CDN at it. CDNs that cache Range requests serve tiles without extra logic; others, like Cloudflare, can use an edge function to translate x/y/z URLs into Range calls. The design eliminates the need for a tile server, cutting infrastructure complexity.

How cheap is self‑hosting on Bunny.net?

Bunny.net supports HTTP Range requests, does not collect personal data by default, and has two EU‑headquartered data centers. Bandwidth to Europe and North America costs $0.01 per GB, or $0.005 per GB on the smaller Volume network. Storage ranges from $0.01/GB/month (no replication) to $0.055/GB/month (maximum replication). Storing the 139 GB world map with five‑fold replication across continents totals about $5/month. A typical 5 MB European map load costs $0.00005, which the author estimates is 100 × cheaper than Mapbox’s $0.05 per 1 k loads.

PMTiles lets you serve the entire world map from a single 139 GB file for about $5 a month, delivering a 100‑fold cost reduction versus traditional map APIs.

Can you deploy the map in under an hour?

First, create a storage zone with S3 compatibility; the author notes the HTTP API timed out after 15 minutes, so S3 mode is safer. Using rclone, copy the PMTiles file directly to the Bunny storage zone with a 256 MB chunk size. Next, configure a pull zone, set the storage zone as the origin, enable “Optimize for large object delivery,” and restrict CORS to approved referrers. To prevent abuse, limit download speed to 10 kB/s after 10 MB and consider requests‑per‑second or monthly bandwidth caps. The author recommends running the upload in tmux or on a temporary VPS if the local connection is weak.

How to embed the self‑hosted tiles on a website?

With the PMTiles file live, install the pmtiles npm package and register its protocol with MapLibre GL. Add a style that points to the pmtiles URL, then load the map as you would any other vector tile source. The author used MapLibre GL to display a fully functional world map, confirming that the setup delivers a cost‑effective, highly available mapping solution without relying on third‑party APIs.

Frequently asked questions

How much does storing the full world map cost on Bunny.net?

Storing the 139 GB world map with replication to most continents (5×) runs about $5 per month in storage fees.

How does the bandwidth cost per 5 MB load compare to Mapbox?

A 5 MB load costs $0.00005, which the author estimates is roughly 100 × cheaper than Mapbox's $0.05 per 1 k map loads.

Does Bunny.net collect personal data by default?

Bunny.net does not collect personal data by default.

Self‑hosting map tiles is no longer a niche hobby; with PMTiles and affordable CDNs like Bunny.net, the barrier to entry has dropped to a handful of dollars and a few command‑line steps. Developers can now retain full control over their geodata, avoid per‑load fees, and sidestep the data‑privacy concerns of commercial providers. As more projects adopt this model, the map‑service market may see a shift toward decentralized, low‑cost alternatives.

Sources: https://bruceroettgers.eu/blog/protomaps/