v6.16.0
Added 3
- Allow Map#setMaxBounds to constrain one geographic axis without constraining the other
- Allow new Map({ transformStyle: { ... }}) to provide a style transformation function similar to the same option in setStyle
- Add accept headers for MLT according to the current capabilities
Fixed 11
- Fix expired vector tiles erroring on their next reload, e.g. after setFilter(), when the server returns an unchanged ETag
- Fix GeoJSONSource.getBounds throwing when a feature has a null geometry
- Fix characters covered by font-faces switching to glyphs from the glyphs URL once their PBF range is downloaded
- 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
- 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
- Fix GeoJSONSource.updateData applying a queued update to a feature that a later call adds again
- Fix images added with addImage, e.g. from styleimagemissing, not showing in tiles that were reloaded after the map was panned across 180°
- Fix maps that stop loading after iOS shuts down their background workers to save memory
- Fix vector tiles past the source's maxzoom failing to load when slicing leaves a one-point line
- Fix terrain drawing flat at low zoom, where its tiles are at the DEM source's minzoom
- Fix queryRenderedFeatures missing part of a GeoJSON polygon whose ring does not repeat its first point
From MapLibre GL JS
✨ Features and improvements
- Allow
Map#setMaxBoundsto 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 insetStyle(#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.getBoundsthrowing when a feature has anullgeometry (#8814) (by @auraseb) - Fix characters covered by
font-facesswitching 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
webglcontextlostfires, 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 constantline-dasharraywhose dash positions were never set (#8846) (by @yulman2207) - Fix
GeoJSONSource.updateDataapplying a queued update to a feature that a later call adds again (#8804) (by @architpai) - Fix images added with
addImage, e.g. fromstyleimagemissing, 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
queryRenderedFeaturesmissing part of a GeoJSON polygon whose ring does not repeat its first point (#8874) (by @johncarmack1984)