Sourced from maplibre-gl's releases.
v6.8.0
✨ Features and improvements
- Add
map.getStyleUrl(), which returns the URL the style was loaded from, ornullwhen the style was given as an object (#7109) (by@bradymadden97and@giswqs)- Sample terrain render-to-texture output through mipmaps with trilinear filtering, so draped layers stop shimmering and aliasing at high pitch (#8328, continues #7673) (by
@AveryanAlex)- Build the
Intl.Segmenterinstances used for text shaping on first use instead of at import, shaving several milliseconds off loading MapLibre on the main thread (#8337) (by@cherenkov)- Link shader programs before reading their compile status, so the driver can overlap the compiles and the main thread waits less on shader compilation (#8338) (by
@cherenkov)- Build the default
Markerpin once and clone it per marker, so creating many default markers takes roughly half the constructor time (#8340) (by@cherenkov)- Add SDF rendering support for fill patterns, using
fill-coloras the foreground color (#7747) (by@bradymadden97and@deniial00)- Warn once when the canvas is clamped to
maxCanvasSize, which previously lowered the rendered resolution silently (#8200) (by@str0kes)🐞 Bug fixes
- Fix a marker's popup jumping to another world copy when the marker is moved across the antimeridian on a zoomed-out map (#5655, #8326, continues #5956) (by
@yuiseki)- Fix terrain drape textures not being refreshed after zoom changes, causing stale rendering at the new zoom level (#8251) (by
@patte)- Fix a gap between the sky and the ground at high pitch while globe transitions to mercator (#7382) (by
@birkskyum)- Treat an empty tile response (e.g. HTTP 204) as no data: raster-DEM tiles now load without elevation instead of failing with a
dem dimension mismatcherror, and empty raster tiles render as transparent (#1551) (by@clement-igonet)- Validate the
beforelayer inmap.moveLayerbefore reordering, so passing the id of a layer that does not exist leaves the layer order untouched instead of dropping the moved layer out of it (#8301) (by@lazerg)- Fix visible seams between hillshade tiles when using linear interpolation. (#8302) (by
@Turbo87)- Fix the map freezing when a render task throws an error (#6093) (by
@UberMouse)- Fix
getCameraAltitude()returningNaNunderglobeandvertical-perspective, which disabled marker terrain occlusion and the camera terrain check; the altitude now follows the sphere (#6584) (by@bigmistqkeand@patte)- Draw an elevated symbol on globe when the symbol itself is in view but the ground under it is behind the horizon; occlusion now follows the line of sight to the elevated point (#8253) (by
@clement-igonet)- Fix
setTilesproducing stale tile URLs whenloadTileruns in the same frame (#8323) (by@johncarmack1984and@nostrorom)- Keep the tile under an elevated symbol from being culled near the horizon, so a symbol with a large
symbol-height-offsetstays visible until it is behind the planet (#8316) (by@clement-igonet)
Sourced from maplibre-gl's changelog.
6.8.0
✨ Features and improvements
- Add
map.getStyleUrl(), which returns the URL the style was loaded from, ornullwhen the style was given as an object (#7109) (by@bradymadden97and@giswqs)- Sample terrain render-to-texture output through mipmaps with trilinear filtering, so draped layers stop shimmering and aliasing at high pitch (#8328, continues #7673) (by
@AveryanAlex)- Build the
Intl.Segmenterinstances used for text shaping on first use instead of at import, shaving several milliseconds off loading MapLibre on the main thread (#8337) (by@cherenkov)- Link shader programs before reading their compile status, so the driver can overlap the compiles and the main thread waits less on shader compilation (#8338) (by
@cherenkov)- Build the default
Markerpin once and clone it per marker, so creating many default markers takes roughly half the constructor time (#8340) (by@cherenkov)- Add SDF rendering support for fill patterns, using
fill-coloras the foreground color (#7747) (by@bradymadden97and@deniial00)- Warn once when the canvas is clamped to
maxCanvasSize, which previously lowered the rendered resolution silently (#8200) (by@str0kes)🐞 Bug fixes
- Fix a marker's popup jumping to another world copy when the marker is moved across the antimeridian on a zoomed-out map (#5655, #8326, continues #5956) (by
@yuiseki)- Fix terrain drape textures not being refreshed after zoom changes, causing stale rendering at the new zoom level (#8251) (by
@patte)- Fix a gap between the sky and the ground at high pitch while globe transitions to mercator (#7382) (by
@birkskyum)- Treat an empty tile response (e.g. HTTP 204) as no data: raster-DEM tiles now load without elevation instead of failing with a
dem dimension mismatcherror, and empty raster tiles render as transparent (#1551) (by@clement-igonet)- Read the map container's dimensions before mutating it in
Map#_setupContainer, avoiding a forced synchronous layout reflow on every map initialization (#8307) (by@lazerg)- Validate the
beforelayer inmap.moveLayerbefore reordering, so passing the id of a layer that does not exist leaves the layer order untouched instead of dropping the moved layer out of it (#8301) (by@lazerg)- Fix visible seams between hillshade tiles when using linear interpolation. (#8302) (by
@Turbo87)- Fix the map freezing when a render task throws an error (#6093) (by
@UberMouse)- Fix
getCameraAltitude()returningNaNunderglobeandvertical-perspective, which disabled marker terrain occlusion and the camera terrain check; the altitude now follows the sphere (#6584) (by@bigmistqkeand@patte)- Draw an elevated symbol on globe when the symbol itself is in view but the ground under it is behind the horizon; occlusion now follows the line of sight to the elevated point (#8253) (by
@clement-igonet)- Fix
setTilesproducing stale tile URLs whenloadTileruns in the same frame (#8323) (by@johncarmack1984and@nostrorom)- Keep the tile under an elevated symbol from being culled near the horizon, so a symbol with a large
symbol-height-offsetstays visible until it is behind the planet (#8316) (by@clement-igonet)
9df21da
Bump js version to 6.8.0 (#8371)05302ad
fix: compute pixelsPerMeter in the transform helper so
getCameraAltitude() wo...cf1781c
test: serve the browser tests' tiles and styles from local fixtures (#8367)055db89
refactor: unify bucket dependency finalization through addFeatures (#8347)045a3ce
Warn when the canvas is clamped to maxCanvasSize (#8275)d2d0371
Keep tiles under elevated symbols from being culled near the horizon (#8319)0b33607
chore(deps-dev): bump puppeteer from 25.9.0 to 25.10.0 (#8359)86d30b0
chore(deps-dev): bump devtools-protocol from 0.0.1687809 to 0.0.1692173
(#8354)9a0884f
chore(deps-dev): bump cspell from 10.2.0 to 10.2.1 (#8360)3d42c64
chore(deps-dev): bump postcss from 8.5.26 to 8.5.28 (#8362)