Skip to Content

Map tiles

The map needs a PMTiles file in a Cloudflare R2 bucket.

The map comes from a single PMTiles file stored in a Cloudflare R2 bucket. The app reads it directly from R2, using short-lived signed addresses your server hands out. Your server won't start without it.

Cloudflare R2 is the only supported map storage for now.

Set it up

  1. Get a PMTiles basemap in the Protomaps format. The app's map style is built for it.
  2. Create an R2 bucket and upload the file.
  3. Create an R2 API token that can read the bucket.
  4. Set R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET and R2_PM_TILES_KEY (the file's name) on both the backend and the runner.

At startup, both check that the file exists.

On this page