MBTiles 📦

MBTiles (SQLite Tiles)

Open Beta
.mbtiles · application/x-sqlite3

MBTiles 是一种将地图瓦片存储在单个 SQLite 文件中的格式。紧凑、快速,便于离线地图和移动应用使用。MapLibre、TileMill、Mapbox 和 GeoServer 均支持。

立即导出 MBTiles ✨ Open Beta — 免费无限制

主要特点

单一 SQLite 文件
快速瓦片访问
支持 PNG/JPEG/PBF
元数据(缩放、范围、署名)
MBTiles 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 MBTiles 格式

MBTiles is a Mapbox specification describing how to pack map tiles into a single SQLite file: a tiles table with zoom level, coordinates and the image, plus a metadata table with the name, bounds and zoom range. Instead of thousands of small files on disk you get one portable container understood by QGIS, TileServer GL, MapLibre and mobile apps.

The format is chosen when the map has to work without internet or be served from your own server: an offline layer in a mobile app, a backdrop on a field tablet, a local tile service for an internal portal. Copying and handing over one file is easier than a folder with tens of thousands of images.

The OSM2CDR export delivers raster MBTiles: the selected area is rendered on the server in your style and cut into 256x256 PNG tiles. By default zooms 10 through 16 are built, and the range is set at export time; rows are numbered in TMS order, as the specification requires, and the name, area bounds and zoom bounds are written into metadata. Inside are images, not vector tiles — the style is chosen at export and cannot be changed on the client.

打开 MBTiles 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 MBTiles (SQLite Tiles)(.mbtiles)文件:

🌎QGIS 🗺OsmAnd 💻Locus Map 💻TileServer-GL 💻GeoServer 💻MapLibre

格式规格

谁在使用 MBTiles 地图

🏗
离线地图
One file with the map of the area on the device — the map opens where there is no signal.
💻
移动应用
A ready offline layer for an Android or iOS app: the container goes into the resources and is read locally.
📊
瓦片服务
A source for a local tile server (TileServer GL, GeoServer) on an internal network with no internet access.
🎨
嵌入式地图
A backdrop for an embedded map on a website or in a kiosk, when external tile providers are unavailable.
🗺
演示展示
Showing a map quickly at a talk or in the field: the file on a laptop opens in QGIS without internet.

如何导出 MBTiles

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 MBTiles
从 127 种可用导出格式中选择 MBTiles (SQLite Tiles)
3
导出
点击导出,1–5 分钟内收到您的 .mbtiles 文件
4
下载
下载完成的 MBTiles 文件并在 QGIS 中打开

导出后如何打开

MBTiles 格式的热门地图

Free

导出 MBTiles (SQLite Tiles) 地图

从 OpenStreetMap 下载专业的 MBTiles 地图。即时生成,任意区域。

免费 / 导出
立即导出 MBTiles →

常见问题

为什么选 MBTiles 而不是单独的瓦片?
我能在 QGIS 中打开吗?
它与 PMTiles 有何区别?
How is this different from PMTiles?
Which tiles are inside — raster or vector?
Which zoom levels go into the file?
How do I show such a map on a website?

与其他格式比较

相关格式

经常一起导出

Related Articles