PMTiles 🗺

PMTiles

Open Beta
.pmtiles · application/vnd.pmtiles

PMTiles เป็นไฟล์เก็บไทล์เวกเตอร์แบบ serverless สำหรับแผนที่บนเว็บ ไฟล์เดียวมีไทล์ทั้งหมดที่เข้าถึงได้ผ่าน HTTP range request เหมาะอย่างยิ่งสำหรับการโฮสต์บน S3, CloudFlare R2, GitHub Pages โดยไม่ต้องใช้เซิร์ฟเวอร์ไทล์

ส่งออก PMTiles เลย ✨ Open Beta — ฟรี ไม่มีข้อจำกัด

คุณสมบัติสำคัญ

ไฟล์เดียว — ไทล์ทั้งหมด
HTTP range request
ไม่ต้องใช้เซิร์ฟเวอร์ — โฮสติงแบบสแตติกเท่านั้น
Example PMTiles export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

เกี่ยวกับรูปแบบ 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.

โปรแกรมใดที่เปิดไฟล์ PMTiles ได้

โปรแกรมและแอปพลิเคชันต่อไปนี้สามารถเปิด แก้ไข และทำงานกับไฟล์ PMTiles (.pmtiles) ที่ส่งออกจาก OSM2CDR ได้:

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

Format specifications

ใครใช้แผนที่ PMTiles

🏗
แผนที่เว็บแบบ serverless
A web map with no tile server: one file on hosting, no service to maintain.
💻
การโฮสต์ไทล์แบบสแตติก
Serving tiles from static storage — S3, Cloudflare R2 or GitHub Pages hand the file over as an ordinary resource.
📊
แผนที่บน CDN
A map through a CDN: it is cached as a whole, while the client fetches only the pieces it needs.
🎨
แผนที่เว็บออฟไลน์
A self-contained web map that can be placed next to the application and opened without external services.
🗺
การสร้างต้นแบบ
A quick prototype: the map is up in minutes, with no infrastructure and no contracts with tile providers.

วิธีส่งออก PMTiles

1
เลือกพื้นที่
วาดรูปสี่เหลี่ยมหรือรูปหลายเหลี่ยมบนแผนที่แบบโต้ตอบได้ที่ osm2cdr.ru
2
เลือก PMTiles
เลือก PMTiles จากรายการรูปแบบการส่งออก 127 รูปแบบที่มีให้
3
ส่งออก
คลิกส่งออกและรับไฟล์ .pmtiles ของคุณใน 1-5 นาที
4
ดาวน์โหลด
ดาวน์โหลดไฟล์ PMTiles ที่พร้อมแล้วและเปิดใน MapLibre GL JS

วิธีเปิดไฟล์หลังส่งออก

แผนที่ยอดนิยมใน PMTiles

ฟรี

รับการส่งออกแผนที่ PMTiles

ดาวน์โหลดแผนที่ PMTiles ระดับมืออาชีพจาก OpenStreetMap สร้างได้ทันที ครอบคลุมทุกพื้นที่

ฟรี / การส่งออก
ส่งออก PMTiles เลย →

คำถามที่พบบ่อย

ต้องใช้เซิร์ฟเวอร์ไทล์สำหรับ PMTiles หรือไม่?
ไลบรารีใดที่รองรับ 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?

เปรียบเทียบกับรูปแบบอื่น

PMTiles guides and tutorials

รูปแบบที่เกี่ยวข้อง

มักส่งออกพร้อมกัน

Related Articles