github maplibre/maplibre-gl-js v6.12.0

2 hours ago

✨ Features and improvements

  • Add a zoomToUserAccuracy option to GeolocateControlOptions to allow control over map zoom adjustments in line with the Geolocation Position update accuracy, while trackUserLocation is true (#7908, #8324, continues #7909) (by @timsluis)
  • With fill-extrusion-rounded-corner-distance set, shade the walls of a rounded corner as one curved surface by sharing the vertex normal between walls that meet at a shallow angle, instead of one flat shade per arc segment (#8475) (by @clement-igonet)
  • Speed up symbol rendering when the set of visible tiles changes, by rewriting the opacity buffers only of the symbol buckets whose labels actually changed instead of every bucket of every symbol layer (#8434) (by @cherenkov)
  • Add an absolutePadding option to Map#cameraForBounds and Map#fitBounds to treat padding as the map's persistent padding instead of adding it to the current one (#8480) (by @sargunv)

🐞 Bug fixes

  • fix(CanvasSource): catch load errors and fire map.error like ImageSource (#8448) (#8450) (by @SatvikMishra08)
  • Fix GeoJSONSource still sending its waiting updates to the worker after the source is removed (#8585) (by @clementperon)
  • Fix GeoJSONSource memory growing until the page crashes when setData is called faster than the worker handles it (#8585) (by @clementperon)
  • Fix the map rendering at the display rate instead of going idle over a DEM with a minimum below sea level when centerClampedToGround is false (#8605) (by @johncarmack1984)
  • Fix a gesture over terrain throwing the camera when the terrain under the center loads after the gesture begins or the terrain switches off before it ends (#8548) (by @johncarmack1984)
  • Fix the terrain elevation reading 0 outside the drawn tiles while the camera is below the terrain, and make that read about 40 times cheaper (#8539) (by @johncarmack1984)
  • Fix a hole around the poles of the globe in background, fill and line layers from zoom 3 (#8638) (by @birkskyum)
  • Fix jumpTo, and the setters that use it, pulling the center elevation onto the terrain when centerClampedToGround is false (#8566) (by @johncarmack1984)
  • Fix GeoJSONSource#updateData leaving stale clusters on untouched tiles after clustering was turned on with setClusterOptions (#8613) (by @clementperon)
  • Fix GeoJSONSource#setClusterOptions clustering twice when called while new data is waiting to be sent (#8613) (by @clementperon)
  • Fix GeoJSONSource data set with setData being overwritten by the result of an earlier URL load or updateData (#8613) (by @clementperon)
  • Fix fill-extrusion walls facing exactly east or west skipping fill-extrusion-vertical-gradient and rendering brighter than the other walls (#8604) (by @birkskyum)
  • Fix easeTo and flyTo pulling the center elevation onto the terrain when centerClampedToGround is false (#8566) (by @johncarmack1984)
  • Fix fill-outline-color, and the antialiased edge of fills, not being drawn when terrain is enabled (#4200) (by @clement-igonet)
  • Respect map padding when constraining the camera to max bounds, so the padded viewport can pan fully to its edges (#8501) (by @erenbati)
  • Fix an unclosed disallowed tag in one attribution erasing the other attributions, by sanitizing each attribution before joining them (#8569) (by @sx4im)
  • Fix color-relief with a custom DEM encoding whose redFactor, greenFactor or blueFactor is 0, where every elevation stop packed to NaN and the color ramp collapsed (#6411) (by @drakeo338)
  • Fix queryRenderedFeatures missing fill-extrusions on globe once it renders as mercator (#8560) (by @birkskyum)
  • Fix line-offset distorting the line width around joins (#8570) (by @HarelM)
  • Cross-fade raster tiles when zooming out from a source's maxzoom, where the tiles switched instantly (#8517) (by @cherenkov)

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

NewReleases is sending notifications on new releases.