什么是 maplibre-mapbox-migration?
从 Mapbox GL JS 迁移到 MapLibre GL JS — 打包和导入更改、删除访问令牌、选择图块源、插件等效项以及您获得或放弃的内容。将现有 Mapbox 地图移动到 MapLibre 时使用。 来源:maplibre/maplibre-agent-skills。
从 Mapbox GL JS 迁移到 MapLibre GL JS — 打包和导入更改、删除访问令牌、选择图块源、插件等效项以及您获得或放弃的内容。将现有 Mapbox 地图移动到 MapLibre 时使用。
通过命令行快速安装 maplibre-mapbox-migration AI 技能到你的开发环境
来源:maplibre/maplibre-agent-skills。
This skill guides you through migrating an application from Mapbox GL JS to MapLibre GL JS. The two libraries share a common ancestry (MapLibre forked from Mapbox GL JS v1.13 in December 2020), so the API is largely the same. The main changes are: swap the package, replace the namespace, remove the Mapbox access token, and choose a new tile source (MapLibre does not use mapbox:// styles).
What you give up: Mapbox Studio integration, Mapbox-hosted tiles and styles, Mapbox Search/Directions/Geocoding APIs, official Mapbox support.
Replace all mapboxgl with maplibregl (and mapbox-gl with maplibre-gl in package names or paths). Examples:
从 Mapbox GL JS 迁移到 MapLibre GL JS — 打包和导入更改、删除访问令牌、选择图块源、插件等效项以及您获得或放弃的内容。将现有 Mapbox 地图移动到 MapLibre 时使用。 来源:maplibre/maplibre-agent-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-mapbox-migration从 Mapbox GL JS 迁移到 MapLibre GL JS — 打包和导入更改、删除访问令牌、选择图块源、插件等效项以及您获得或放弃的内容。将现有 Mapbox 地图移动到 MapLibre 时使用。 来源:maplibre/maplibre-agent-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/maplibre/maplibre-agent-skills --skill maplibre-mapbox-migration 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/maplibre/maplibre-agent-skills