github maplibre/maplibre-gl-js v5.22.0

9 hours ago

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

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

NewReleases is sending notifications on new releases.