github maplibre/maplibre-gl-js v6.16.0

3 hours ago

✨ Features and improvements

  • Allow Map#setMaxBounds to constrain one geographic axis without constraining the other (#6148) (by @erenbati)
  • Allow calling new Map({ transformStyle: { ... }}) to provide a style transformation function similar to the same option in setStyle (#8786) (by @hiddewie)
  • Add accept headers for MLT according to the current capabilities (#7483) (by @CommanderStorm)

🐞 Bug fixes

  • Fix expired vector tiles erroring on their next reload, e.g. after setFilter(), when the server returns an unchanged ETag (#8771) (by @DoFabien)
  • Fix GeoJSONSource.getBounds throwing when a feature has a null geometry (#8814) (by @auraseb)
  • Fix characters covered by font-faces switching to glyphs from the glyphs URL once their PBF range is downloaded (#8490) (by @NEKOYASAN)
  • Fix the map shrinking to a single stretched pixel for good when it resizes after the WebGL context is lost but before webglcontextlost fires, e.g. when a mobile browser returns from the background (#8837) (by @lazerg)
  • Fix TypeError: Cannot read properties of undefined (reading '0') when drawing a line layer with a constant line-dasharray whose dash positions were never set (#8846) (by @yulman2207)
  • Fix GeoJSONSource.updateData applying a queued update to a feature that a later call adds again (#8804) (by @architpai)
  • Fix images added with addImage, e.g. from styleimagemissing, not showing in tiles that were reloaded after the map was panned across 180° (#8858) (by @birkskyum)
  • Fix maps that stop loading after iOS shuts down their background workers to save memory (#8461, #8491) (by @lucaswoj, @ingalls, and @HarelM)
  • Fix vector tiles past the source's maxzoom failing to load when slicing leaves a one-point line (#8681) (by @johncarmack1984)
  • Fix terrain drawing flat at low zoom, where its tiles are at the DEM source's minzoom (#8772) (by @johncarmack1984)
  • Fix queryRenderedFeatures missing part of a GeoJSON polygon whose ring does not repeat its first point (#8874) (by @johncarmack1984)

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

NewReleases is sending notifications on new releases.