Skip to content

v6.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Sep 22:23
· 10 commits to main since this release
Immutable release. Only release title and notes can be modified.
9df21da

✨ Features and improvements

  • Add map.getStyleUrl(), which returns the URL the style was loaded from, or null when the style was given as an object (#7109) (by @bradymadden97 and @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.Segmenter instances 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 Marker pin 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-color as the foreground color (#7747) (by @bradymadden97 and @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 mismatch error, and empty raster tiles render as transparent (#1551) (by @clement-igonet)
  • Validate the before layer in map.moveLayer before 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() returning NaN under globe and vertical-perspective, which disabled marker terrain occlusion and the camera terrain check; the altitude now follows the sphere (#6584) (by @bigmistqke and @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 setTiles producing stale tile URLs when loadTile runs in the same frame (#8323) (by @johncarmack1984 and @nostrorom)
  • Keep the tile under an elevated symbol from being culled near the horizon, so a symbol with a large symbol-height-offset stays visible until it is behind the planet (#8316) (by @clement-igonet)