PMTiles 🗺

PMTiles

Open Beta
.pmtiles · application/vnd.pmtiles

PMTiles là một tệp lưu trữ tile vector không cần máy chủ cho bản đồ web. Một tệp duy nhất chứa toàn bộ các tile, truy cập được qua các truy vấn HTTP range. Lý tưởng để lưu trữ trên S3, CloudFlare R2, GitHub Pages mà không cần máy chủ tile.

Xuất PMTiles ngay ✨ Open Beta — miễn phí, không giới hạn

Tính năng chính

Một tệp -- tất cả các ô
HTTP range request
Không cần máy chủ -- chỉ lưu trữ tĩnh
Example PMTiles export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Giới thiệu về định dạng 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.

Chương trình nào mở được tệp PMTiles

Các chương trình và ứng dụng sau có thể mở, chỉnh sửa và làm việc với tệp PMTiles (.pmtiles) được xuất từ OSM2CDR:

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

Format specifications

Ai sử dụng bản đồ PMTiles

🏗
Bản đồ web serverless
A web map with no tile server: one file on hosting, no service to maintain.
💻
Lưu trữ tile tĩnh
Serving tiles from static storage — S3, Cloudflare R2 or GitHub Pages hand the file over as an ordinary resource.
📊
Bản đồ qua CDN
A map through a CDN: it is cached as a whole, while the client fetches only the pieces it needs.
🎨
Bản đồ web ngoại tuyến
A self-contained web map that can be placed next to the application and opened without external services.
🗺
Tạo nguyên mẫu
A quick prototype: the map is up in minutes, with no infrastructure and no contracts with tile providers.

Cách xuất PMTiles

1
Chọn khu vực
Vẽ một hình chữ nhật hoặc đa giác trên bản đồ tương tác tại osm2cdr.ru
2
Chọn PMTiles
Chọn PMTiles từ danh sách 127 định dạng xuất khả dụng
3
Xuất
Nhấn Xuất và nhận tệp .pmtiles của bạn trong 1-5 phút
4
Tải xuống
Tải tệp PMTiles đã sẵn sàng và mở trong MapLibre GL JS

Cách mở tệp sau khi xuất

Bản đồ phổ biến ở định dạng PMTiles

Miễn phí

Nhận bản đồ xuất ở định dạng PMTiles

Tải bản đồ PMTiles chuyên nghiệp từ OpenStreetMap. Tạo tức thì, bất kỳ khu vực nào.

Miễn phí / lần xuất
Xuất PMTiles ngay →

Câu hỏi thường gặp

Tôi có cần máy chủ ô cho PMTiles không?
Những thư viện nào hỗ trợ 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?

So sánh với các định dạng khác

PMTiles guides and tutorials

Định dạng liên quan

Thường được xuất cùng nhau

Related Articles