github mapbox/mapbox-gl-js v3.37.0-rc.1

pre-release3 hours ago
  • Add Map#setTransition and Map#getTransition to change the style transition at runtime, and Map#setFadeDuration and Map#getFadeDuration to change the label fade duration at runtime.
  • Fix setFog, setTerrain, setRain and setSnow resetting the style transition duration to zero.
  • Fix model-color so model layer that uses the property looks slightly different.
  • Fix feature state changes on line layers draped over terrain not being rendered until the camera moves.
  • Fix devtools serialization for duplicate entries.
  • Optimize rain fragment shader.
  • Add the experimental @mapbox/mapbox-gl-webmcp plugin for exposing a live Map to browser agents through WebMCP.
  • Fix UMD bundle compatibility with bundlers lowering spread or async syntax (e.g., Angular's esbuild).
  • Fix icon sizes, symbol appearances, SDF icon halos and global placement with scale factor being ignored or applied twice.
  • Improve initial load performance for maps using Mapbox Standard, streets-v12, streets-v11, light-v11 or dark-v11 style by precompiling the shaders.
  • Fix light/camera/zoom-dependent config re-evaluation.
  • Fix fill-extrusion layers being hidden behind elevated raster layers at low pitch when terrain is disabled.
  • Fix style validation reporting a missing glyphs property for text in fragment styles and in the embedded data of imports.
  • Fix terrain and hillshade tiles occasionally rendering flat when a raster source with tiles of the same size is also on the map.
  • Fix GeoJSON sources occasionally showing outdated features after setData or updateData is called several times in quick succession.
  • Fix setData and updateData calls made while a GeoJSON source is still loading data being applied as the wrong kind of update, which could discard or wrongly merge features.
  • Fix custom sources occasionally showing an outdated tile image after update() is called several times in quick succession.
  • Compile fewer shader variants when shadows are disabled and for symbols on the globe.
  • Fix a faint seam between repeats of a line-pattern image, and pattern images being slightly squeezed along the line.

Don't miss a new mapbox-gl-js release

NewReleases is sending notifications on new releases.