maplibre avatar

Maplibre Mapbox Migration

This walks you through swapping Mapbox GL JS for MapLibre GL JS: changing imports, dropping the access token, and most critically, replacing the style URL since mapbox:// sources won't work. The libraries share the same API from the 2020 fork, so most map code survives unchanged. The real work is picking a new tile source (OpenFreeMap for quick testing, then evaluate self-hosted or paid options) and migrating any custom Mapbox Studio styles by hand-editing the JSON to match your new tile schema. Covers what you gain (open source, no vendor lock, lower costs) and lose (Studio, hosted services, official support). Good reference if you're evaluating the switch or already committed to it.

skills.sh installs
498
GitHub stars
160
last updated
Aug 21, 2026

Install

$ npx -y skills add maplibre/maplibre-agent-skills --skill maplibre-mapbox-migration --agent claude-code

Installs into .claude/skills of the current project.

Files

Mapbox to MapLibre Migration

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).

When to Use This Skill

  • Migrating an existing Mapbox GL JS app to MapLibre
  • Choosing tile sources and services after moving off Mapbox

Migration at a Glance

Work through these in order; each item has a numbered step below.

Sponsors

Details

Repository
github.com/maplibre/maplibre-agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from maplibre/maplibre-agent-skills

All 3
1jwynia avatartask-breakdownjwynia/agent-skillsHelp neurodivergent users break down overwhelming tasks into manageable steps. Use when tasks feel paralyzing, when executive function is struggling, when someo497skills.sh installs
2aj-geddes avatarreactive-programmingaj-geddes/useful-ai-promptsImplement reactive programming patterns using RxJS, streams, observables, and backpressure handling. Use when building event-driven UIs, handling async data str496skills.sh installs
3aj-geddes avatarapi-paginationaj-geddes/useful-ai-promptsImplement efficient pagination strategies for large datasets using offset/limit, cursor-based, and keyset pagination. Use when returning collections, managing l495skills.sh installs
4brianrwagner avatarvoice-extractorbrianrwagner/ai-marketing-claude-code-skillsExtract and document someone's authentic writing voice from samples. Use when someone needs a "voice guide," wants to capture their writing DNA, or needs to tra495skills.sh installs
5new-silvermoon avatarandroid-retrofitnew-silvermoon/awesome-android-agent-skillsExpert guidance on setting up and using Retrofit for type-safe HTTP networking in Android. Covers service definitions, coroutines, OkHttp configuration, and Hil495skills.sh installs
6aj-geddes avatarcontainer-debuggingaj-geddes/useful-ai-promptsDebug Docker containers and containerized applications. Diagnose deployment issues, container lifecycle problems, and resource constraints.494skills.sh installs