Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

在 Linux 上快速开始

mkdir martin
cd martin

# 下载一些示例数据
curl -L -O https://github.com/maplibre/martin/raw/main/tests/fixtures/mbtiles/world_cities.sql

# 检查是否安装了 sqlite
sqlite3 --version

# 初始化数据库
sqlite3 world_cities.mbtiles < world_cities.sql

# 下载最新版本的 Martin 二进制文件,解压并设置为可执行
curl -L -O https://github.com/maplibre/martin/releases/latest/download/martin-x86_64-unknown-linux-gnu.tar.gz
tar -xzf martin-x86_64-unknown-linux-gnu.tar.gz
chmod +x ./martin

# 显示 Martin 帮助屏幕
./martin --help

# 使用示例数据作为唯一的瓦片源运行 Martin
./martin world_cities.mbtiles

查看地图

有关如何查看地图的说明,请参阅使用 QGIS 快速入门。