You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. Replace mapboxgl.accessToken with MapaccessToken option. 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 MapgetLayerProperty and setLayerProperty to support layer-level properties (minzoom, maxzoom, filter, slot, appearances)
Extend TileProvider API to accept ImageBitmap for raster and raster-dem providers.
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.
Extract indoor and part of the model rendering code to be loaded on demand when using the ESM entry point.
Add GeolocateControlready event and setShowAccuracyCircle, setShowUserHeading, setFitBoundsOptions, setShowUserLocation methods.