什么是 maplibre-pmtiles-patterns?
用于 MapLibre GL JS 的 PMTiles 的无服务器矢量和栅格切片 — 单文件格式、HTTP 范围请求、托管在 S3/R2/GitHub 页面上、使用 Planetiler 或 Tippecanoe 生成以及 pmtiles 协议。当您不需要切片服务器或想要从静态存储托管切片时使用。 来源:maplibre/maplibre-agent-skills。
用于 MapLibre GL JS 的 PMTiles 的无服务器矢量和栅格切片 — 单文件格式、HTTP 范围请求、托管在 S3/R2/GitHub 页面上、使用 Planetiler 或 Tippecanoe 生成以及 pmtiles 协议。当您不需要切片服务器或想要从静态存储托管切片时使用。
通过命令行快速安装 maplibre-pmtiles-patterns AI 技能到你的开发环境
来源:maplibre/maplibre-agent-skills。
PMTiles is a single-file format for vector or raster map tiles. You host one (or a few) files on any static host; MapLibre requests byte ranges over HTTP. No tile server, no dynamic backend. This skill covers when to use PMTiles, how to generate and host them, and how to connect them to MapLibre GL JS.
MapLibre does not speak PMTiles natively. You use the PMTiles library to add a protocol handler so that a pmtiles:// (or https:// to a .pmtiles file) source works.
Referencing layers: The style has one source (e.g. sources.tiles) pointing at the .pmtiles URL. Each layer in the layers array that draws from that file uses source: 'tiles' and "source-layer": "layerName", where layerName is the name of a vector layer inside the file (from whatever schema the tiles use). Add multiple style layers with different source-layer values to show roads, labels, etc. from the same file.
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-pmtiles-patterns用于 MapLibre GL JS 的 PMTiles 的无服务器矢量和栅格切片 — 单文件格式、HTTP 范围请求、托管在 S3/R2/GitHub 页面上、使用 Planetiler 或 Tippecanoe 生成以及 pmtiles 协议。当您不需要切片服务器或想要从静态存储托管切片时使用。 来源:maplibre/maplibre-agent-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-pmtiles-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/maplibre/maplibre-agent-skills