What's new
react-maplibre v1.0
Release target: October 2024
This is the initial release of @vis.gl/react-maplibre. The code base was spinned off from react-map-gl v7.1. This version is intended to be a drop-in replacement of react-map-gl v7.
Major differences are listed below.
- This package only supports
maplibre-gl >= 4.0.0. - Removed code-sharing between
mapbox-glandmaplibre-glcomponents to only focus on supporting Maplibre GL. It is expected to have slightly smaller bundle size and more precise types. - Utilizes
maplibre-gl'stransformCameraUpdateAPI to implement stateless Map component. This removes a significant number of hacks and is expected to improve compatibility and performance.
Other improvements:
Mapcomponent addsskyprop.Mapcomponent's global settings (workerCount,workerUrl,maxParallelImageRequests) are set correctly.- Adds
TerrainControlandLogoControlcomponents.
Check out the migration guide.