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:
Migration von Mapbox GL JS zu MapLibre GL JS – Änderungen verpacken und importieren, Zugriffstoken entfernen, Kachelquellen auswählen, Plugin-Äquivalente und was Sie gewinnen oder aufgeben. Verwenden Sie diese Option, wenn Sie eine vorhandene Mapbox-Karte nach MapLibre verschieben. Quelle: maplibre/maplibre-agent-skills.