- First version to support Mapbox GL JS' official types and MapLibre GL JS v5.
This version fully separates the code that support each compatible map library:react-map-gl/mapbox
: for use withmapbox-gl>=3.5.0
react-map-gl/maplibre
: for use withmaplibre-gl>=4
react-map-gl/mapbox-legacy
: for use withmapbox-gl
v1.x and v2.x and@types/mapbox-gl
- As a result, each endpoint now have slightly smaller bundle size and more precise types.
- Maplibre wrapper is expected to have better functionality and performance than v7 by utilizing an upstream API for the React use case.
For a full list of breaking changes, please visit the upgrade guide.