github maplibre/maplibre-gl-js v5.23.0

one day ago

✨ Features and improvements

  • Add touchZoomRotate.setZoomRate() and touchZoomRotate.setZoomThreshold() to customize touch zoom speed and pinch sensitivity (#7271)
  • Improve ability to communicate with imported scripts in workers and use makeRequest in workres as well (#7451) (by @HarelM)
  • Allow opacity and opacityWhenCovered in Marker and MarkerOptions to accept number in addition to string, and add maplibregl-marker-covered CSS class to Marker element when covered by 3D terrain or a globe (#7433) (by @YuChunTsao)
  • perf: add a bench for terrain rendering and fix _demMatrixCache lookup being wasted cycles by actually using the cache (#7400) (by @CommanderStorm)

🐞 Bug fixes

  • Fix polygon text label placement drifting far from center for convex polygons at high zoom due to coordinate rounding in geojson-vt (#7380) (by @CommanderStorm)
  • Ensure that a successful ArrayBuffer response from a custom protocol that is null/undefined is set to an empty ArrayBuffer (#7427) (by @neodescis)
  • Fix error in _contextRestored when map was initialized without a style (#7432) (by @mvanhorn)
  • Fix issue with the cache used for zoomLevelsToOverscale feature (#7450) (by @HarelM)
  • Update stylelint and fix old issues with the CSS (mainly change rgb to use spaces) (#7365) (by @HarelM)

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

NewReleases is sending notifications on new releases.