Breaking changes ⚠️
- Switch the ESM entry point to named exports (
import * as mapboxgl from 'mapbox-gl/esm') so that modern bundlers can eliminate small unused parts of the code. Replacemapboxgl.accessTokenwithMapaccessTokenoption. Most of the bundle still can't be statically eliminated, but this release also improves lazy loading of code at runtime, with more improvements on the way.
Features and improvements ✨
- Extend
MapgetLayerPropertyandsetLayerPropertyto support layer-level properties (minzoom,maxzoom,filter,slot,appearances) - Extend
TileProviderAPI to acceptImageBitmapforrasterandraster-demproviders. - Improve model loading and rendering performance.
- Improve symbol rendering performance.
- Improve performance of decoding and encoding vector tiles and other protobuf-encoded assets.
- Improve color parsing performance, slightly improving load time for styles with many color values.