Skip to content

[js] Update maplibre-gl 5.19.0 → 5.22.0 (minor)#701

Open
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/importmap/maplibre-gl-5.22.0
Open

[js] Update maplibre-gl 5.19.0 → 5.22.0 (minor)#701
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/importmap/maplibre-gl-5.22.0

Conversation

@depfu
Copy link
Copy Markdown
Contributor

@depfu depfu bot commented Apr 4, 2026

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ maplibre-gl (5.19.0 → 5.22.0) · Repo · Changelog

Release Notes

5.22.0

✨ Features and improvements

  • Make line-cap, line-miter-limit, and line-round-limit data-driven properties, allowing per-feature values (#7351) (by @CommanderStorm)
  • GPU performance optimization: early culling of transparent symbols in vertex shaders (#7364) (by @xavierjs)
  • Add example showing how to measure map performance using built-in events (load, idle, render) (#7077) (by @CommanderStorm)
  • UX: Clarify error message language so if layout and paint properties are confused in setPaintProperty or setLayoutProperty (#6954) (by @Willjfield and @CommanderStorm)

🐞 Bug fixes

  • Fix startup crash caused by a stale async style load completing after the style was cleared or replaced (#7377)
  • Make fitBounds and fitScreenCoordinates respect the zoomSnap map option by snapping the zoom level down to keep bounds fully visible (#7332 (by @CommanderStorm)
  • Make jumpTo, easeTo, and flyTo respect the zoomSnap map option by snapping the zoom level to the nearest valid increment (#7333 (by @CommanderStorm)
  • Fix setState crash when switching styles while globe projection is active (#7314) (by @ashwinuae)
  • Prevent crashes when calling map.remove() immediately after creation by canceling in-flight style URL loads (#7368) (by @CommanderStorm)
  • Fixed symbol collision flickering by adding tolerance to GridIndex AABB comparison (#7360) (by @kkokkoejong)
  • Fix fitBounds ignoring maxZoom option in vertical-perspective projection (#7372) (by @CommanderStorm)
  • Prevent stale async style loads from completing after style clear (#7378) (by @Lievesley)
  • Fix broken example for fill-pattern (#7326) (by @k-yle)

5.21.1

🐞 Bug fixes

  • Add missing promoteId parameter to geojson worker and refactor communication object (#7320) (by @HarelM)

5.21.0

✨ 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)

5.20.2

🐞 Bug fixes

  • Fix update GeoJSON when using diff update by updating geojson-vt package (#7257) (by @HarelM)

5.20.1

🐞 Bug fixes

  • Fix cannot read properties of undefined (reading 'range') by updating geojson-vt package (#7245) (by @HarelM)
  • Fix a bug where raster-resampling: nearest was not applied as expected (#7247) (by @yano-h)

5.20.0

✨ Features and improvements

🐞 Bug fixes

  • Fix: Distance to tile is calculated incorrectly in globe projection for high pitch angles (#7219) (by @jtfedd)
  • Fix: Tiles are not cleared when using vector tile source setUrl/setTiles (#7185) (by @madoci)
  • Fix: Allow opaque origins ("null") in Actor message filtering (#7047) (by @pcardinal)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants