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.