PMTiles 🗺

PMTiles

Open Beta
.pmtiles · application/vnd.pmtiles

PMTiles er et serverløst vektorflisearkiv til webkort. En enkelt fil indeholder alle fliser, tilgængelige via HTTP-range-forespørgsler. Ideel til hosting på S3, CloudFlare R2, GitHub Pages uden en fliseserver.

Eksportér PMTiles nu ✨ Open Beta — gratis, ingen begrænsninger

Vigtigste funktioner

Én fil – alle tiles
HTTP range-anmodninger
Ingen server – kun statisk hosting
Example PMTiles export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Om formatet PMTiles

PMTiles is an archive format in which a whole set of tiles sits in one file with an internal index. The browser does not download it as a whole: it requests the pieces it needs with HTTP range requests, which any static hosting can serve — S3, Cloudflare R2, GitHub Pages, plain Nginx.

Hence the main benefit: the map works without a tile server. There is no service to set up, watch over and pay for — the file simply sits next to the site. For a prototype, an internal dashboard or a project that has to outlive the shutdown of a third-party map service, that makes life noticeably easier.

Inside the archive are MVT vector tiles, that is geometry with attributes, and the appearance is set by a style on the client side. The export builds the pyramid up to zoom 12: beyond that encoding the tiles becomes too expensive, and if you asked for more, we honestly report the limitation and suggest MBTiles. For the same reason the exporter rejects very dense areas straight away rather than after a long wait: a short, clear refusal is better than a stuck job.

Hvilket program åbner PMTiles-filer

Følgende programmer og applikationer kan åbne, redigere og arbejde med PMTiles-filer (.pmtiles), der er eksporteret fra OSM2CDR:

💻MapLibre GL JS 💻Leaflet 💻PMTiles Viewer 🌎QGIS 💻Felt

Format specifications

Hvem bruger PMTiles-kort

🏗
Serverløse webkort
A web map with no tile server: one file on hosting, no service to maintain.
💻
Statisk tile-hosting
Serving tiles from static storage — S3, Cloudflare R2 or GitHub Pages hand the file over as an ordinary resource.
📊
CDN-kort
A map through a CDN: it is cached as a whole, while the client fetches only the pieces it needs.
🎨
Offline webkort
A self-contained web map that can be placed next to the application and opened without external services.
🗺
Prototyping
A quick prototype: the map is up in minutes, with no infrastructure and no contracts with tile providers.

Sådan eksporterer du PMTiles

1
Vælg område
Tegn et rektangel eller en polygon på det interaktive kort på osm2cdr.ru
2
Vælg PMTiles
Vælg PMTiles fra listen over 127 tilgængelige eksportformater
3
Eksportér
Klik på Eksportér, og modtag din .pmtiles-fil på 1-5 minutter
4
Download
Download den færdige PMTiles-fil, og åbn den i MapLibre GL JS

Sådan åbner du filen efter eksporten

Populære kort i PMTiles

Free

Få korteksport i PMTiles

Download professionelle PMTiles-kort fra OpenStreetMap. Øjeblikkelig generering, ethvert område.

Gratis / eksport
Eksportér PMTiles nu →

Ofte stillede spørgsmål

Har jeg brug for en tile-server til PMTiles?
Hvilke biblioteker understøtter PMTiles?
Up to which zoom is the pyramid built?
Why was the export refused for a large dense area?
Why is the map empty after I connect it?

Sammenlign med andre formater

Relaterede formater

Ofte eksporteret sammen

Related Articles