Introduction
PMTiles is a single-file archive format for tiled data. A map application can read an
archive held on inexpensive storage without a tile server of its own. Files use the
extension .pmtiles, and the recommended media type is
application/vnd.pmtiles.
Structure
In version 3 a file starts with the seven bytes PMTiles and a version byte
of 3, within a 127-byte header. The usual order after it is the root directory, JSON
metadata, optional leaf directories and the tile data; the root directory must lie within
the first 16 KiB. The header records the compression (none, gzip, Brotli or Zstandard)
and the tile type, such as vector tiles, PNG, JPEG, WebP or AVIF.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the header fields, directory encoding, tile identifiers and earlier versions.
- Viewer: the site has no viewer for this format.
Links
Developers
- PMTiles – command line tool, JavaScript and Python libraries
Reference
- PMTiles version 3 – the specification