·maplibre-pmtiles-patterns
</>

maplibre-pmtiles-patterns

用于 MapLibre GL JS 的 PMTiles 的无服务器矢量和栅格切片 — 单文件格式、HTTP 范围请求、托管在 S3/R2/GitHub 页面上、使用 Planetiler 或 Tippecanoe 生成以及 pmtiles 协议。当您不需要切片服务器或想要从静态存储托管切片时使用。

28安装·2热度·@maplibre

安装

$npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-pmtiles-patterns

如何安装 maplibre-pmtiles-patterns

通过命令行快速安装 maplibre-pmtiles-patterns AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-pmtiles-patterns
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:maplibre/maplibre-agent-skills。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-03-06
更新时间
2026-03-10

Browse more skills from maplibre/maplibre-agent-skills

快速解答

什么是 maplibre-pmtiles-patterns?

用于 MapLibre GL JS 的 PMTiles 的无服务器矢量和栅格切片 — 单文件格式、HTTP 范围请求、托管在 S3/R2/GitHub 页面上、使用 Planetiler 或 Tippecanoe 生成以及 pmtiles 协议。当您不需要切片服务器或想要从静态存储托管切片时使用。 来源:maplibre/maplibre-agent-skills。

如何安装 maplibre-pmtiles-patterns?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-pmtiles-patterns 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/maplibre/maplibre-agent-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-06