github maplibre/maplibre-gl-js v5.21.0

7 hours ago

✨ Features and improvements

  • Add compatibility for ES2020 (#7283) (by @claudiobgit)
  • Add referrerPolicy option to RequestParameters to allow controlling the referrer policy for tile requests (#7278) (by @Bingtagui404)
  • Wait for the GPU to finish its callstack for rendering benchmarks (#7285) (by @xavierjs)
  • Remove Edge 18 WebP detection workaround; always send Accept: image/webp header for image requests (#7293) (by @johanrd)
  • Remove legacy browser compatibility code targeting IE11 and pre-2016 browsers (#7294) (by @johanrd)
  • Remove legacy DOM.remove() and DOM.mouseButton() wrappers; use native APIs directly (baseline 2015) (#7295) (by @johanrd)
  • Make setTransformRequest accept an async function in addition to a sync function. (#7184) (by @kikuomax
    )

🐞 Bug fixes

  • Fix incorrect popup location in case of terrain and jumpTo (#7267) (by @HarelM)
  • Fix memory leak in VideoSource: remove playing event listener and pause video on source removal (#7279) (by @johanrd)
  • Fix memory leak where typed array views retained StructArray buffers after GPU upload, preventing garbage collection (#7280) (by @johanrd)
  • Fix raster DEM tiles getting stuck in "reloading" state (#7284) (by @katemihalikova)
  • Fix GeolocateControl leaking a movestart listener on the map after removal, which could also crash if the control was in active tracking state when removed (#7286) (by @johanrd)
  • Cap tile texture reuse pool to prevent unbounded VRAM growth during rapid zoom/pan (#7289) (by @johanrd)
  • Fix Marker click listener not removed on remove(), leaking the handler added in #7028 (#7287) (by @johanrd)
  • Fix Terrain GPU resource leak: free FBO, textures, and meshes when terrain is disabled via setTerrain(null) (#7288) (by @johanrd)
  • Fix guard against partial layout in PauseablePlacement (#7079) (by @garethbowker)
  • Fix missing tile encoding for MLT queryRenderedFeatures (#7056) (by @dannote and @ted-piotrowski)
  • Fix 3D Tiles example (#7275) (by @hh-hang)

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

NewReleases is sending notifications on new releases.