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)
Add dragRotate: {around: 'pointer'} to turn and tilt the map around the point under the pointer, and {around: 'center', movement: 'circular' | 'linear'}, which replaces the deprecated aroundCenter (#8628) (by @birkskyum)
Redraw fewer layers on terrain when a custom layer's terrainTileRevision or a feature state changes (#8782) (by @birkskyum)
Support the hash option in a projection registered with addProjection (#8743) (by @birkskyum)
Add experimental addProjection, removeProjection, a built-in identity projection and a {bbox} tile URL token for maps in a custom planar CRS with its own quad tile grid (#168, #5764)
Speed up tile loading by skipping point labels in the tile buffer, which the neighbouring tile draws (#8535) (by @cherenkov)
Project GeoJSON sources on a map in a registered CRS, in the workers, from a definition string and a projection handler (#8736) (by @johncarmack1984)
Support OpenType vert forms in vertical labels rendered with font-faces (#8489) (by @NEKOYASAN)
🐞 Bug fixes
Fix a map in a registered projection going blank when its center crosses 180° (#8802) (by @birkskyum)
Fix world projections like Equal Earth throwing and jumping when the mouse is in the space around the world (#8803) (by @birkskyum)
Work around a regression in Safari 26.6 and later where the map stops loading tiles after the page was in the background (#8780) (by @birkskyum)
Fix labels in Brahmic scripts such as Devanagari, Thai and Telugu mixing fonts or dropping letters when the style has a glyphs URL (#8741) (by @crackalamoo)
Fix setWorkerUrl treating a .cjs fragment or query marker as a module worker URL (#8769) (by @Anandb71)
Fix the terrain not finding a tile's own DEM data when the DEM source's maxzoom is below the terrain tile zoom (#8765) (by @johncarmack1984)
Fix the camera dropping to sea level while the terrain under the center of a jumpTo, easeTo or flyTo loads (#8549) (by @johncarmack1984)
Fix a grid of lines along tile borders in line layers of sliced overzoomed tiles when the source tile extent is larger than 4096, by scaling the clip buffer with the extent (#8705) (by @tordans)
Fix the globe drag rounding its rotation to single precision (#8784) (by @johncarmack1984)
Fix load and idle firing before the other tiles finish loading when one tile fails (#8785) (by @johncarmack1984)
Avoid using .innerHTML = … for the Popup close icon (#8795) (by @k-yle)
Fix a GeoJSON feature without coordinates staying out of the tiles after updateData gives it some, by updating geojson-vt to 6.3.0 (#8797) (by @johncarmack1984)
Allow calling new Map({ globalState: { ... }}) and setStyle({ globalState: ... }) to provide an initial global state for the map style, overriding the global state defaults from the style (#7632) (by @hiddewie)
🐞 Bug fixes
fix: ScaleControl throwing when its sample points miss the globe (#8720) (by @SatvikMishra08)
Fix a rendering crash when removeFeatureState removes a property before feature state is set (#8715) (by @yeomin4242)
Work around blank, unresponsive maps on affected iPadOS 16 Safari devices (#8364) (by @samuelsmarason)
Fix circles with circle-pitch-alignment: map being drawn too large while the globe transitions to mercator (#8714) (by @heikki)
Fix map.resize(eventData, false) constraining the camera with the vertical-perspective projection (#8695) (by @birkskyum)
Fix an uncaught error when setStyle is called while the WebGL context is lost, since 6.12.0 (#8693) (by @birkskyum)
Fix the view sliding hundreds of meters off the center when terrain is switched on during a gesture (#8688) (by @johncarmack1984)
Fix the camera jumping back at the end of a pan, flick or rotation into terrain (#8692) (by @johncarmack1984)
Fix flyTo dropping the offset and around options under prefers-reduced-motion, so a reduced-motion fly lands at the same camera as the animated one (#8730) (by @maartenla)
Fix load and idle never firing when the last tile fails with a status other than 404 (#8733) (by @johncarmack1984)
Let the globe center reach the poles, where it stopped at 85.05° (#8629) (by @birkskyum)
Speed up symbol layout by skipping line breaking for labels that fit on one line (#8617) (by @DoFabien)
Add experimental CustomLayerInterface.renderToTerrainTile, CustomLayerInterface.terrainTileRevision and renderTerrainHeightMap in the options of prerender, so custom layers can drape what they draw over the terrain and place objects on it on the GPU (#8588) (by @birkskyum)
🐞 Bug fixes
Fix a stale cached worker crashing the map after an upgrade: the worker is self-contained again instead of importing maplibre-gl-shared.mjs, and its default URL carries the version as a v query parameter. maplibre-gl-shared.mjs and maplibre-gl-shared-dev.mjs are now empty files, kept so that existing copy steps don't fail; they are deprecated and will be removed in the next major version (#8621) (by @HarelM)
Fix globeDistanceOfLocationsPixels returning NaN when two copies of the same point have a dot product slightly above 1 (#8624)(by @Dimononon)
Keep the camera above the terrain, where a scroll zoom into a mountain could take it under the surface and the zoom's end throw it kilometers up (#8539) (by @johncarmack1984)
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)
Mark a program as failed to create instead of throwing when the WebGL context is lost or a failed link reports zero attached shaders, where a dead GPU process made every query answer dead before webglcontextlost arrived (#8607) (by @rubenmarcus)
Improve rendering performance by uploading each tile's projection data once per frame instead of before every draw call (#8545) (by @birkskyum)
Support multiple glyph variants in requests, caches, and atlases (#8488) (by @NEKOYASAN)
🐞 Bug fixes
Fix Map#once(type, layerId, listener) unsubscribing on the first event that misses the layer instead of the first event that hits it (#8499) (by @cherenkov)
Remove hillshade gradient toward the poles (#8551) (by @birkskyum)
Fix camera settings being undone during camera movement with terrain or transformCameraUpdate (#8550) (by @birkskyum)
Fix zooming and panning with the pointer above the horizon moving the map in the opposite direction (#8544) (by @birkskyum)
Fix the camera jumping when a drag over terrain ends at a pitch above 84° (#8541) (by @birkskyum)
Ease the center elevation over terrain during easeTo and flyTo instead of holding it and jumping when the animation ends (#8543) (by @johncarmack1984)
Fix fitBounds and cameraForBounds throwing on the globe projection when the padding exceeds the viewport, instead of warning and returning undefined as on mercator (#8538) (by @drakeo338)
Keep raster tiles sharp at a fractional devicePixelRatio, where the canvas covered a different number of device pixels than its backing store held and the compositor rescaled it (#1590) (by @zdila)
Fix missing promoteId when merging queued updateData diffs in geojson source (#8500) (by @cherenkov)
Sanitize attribution with an allow list of tags and attributes rather than a list of known-dangerous ones (#8532) (by @HarelM)
Fix the camera jumping or bobbing around gestures over terrain, and ignoring terrain that loads after easeTo/flyTo (#8471) (by @johncarmack1984)
Stop sending a vector tile to the worker when it was dropped while its request was being transformed or while the worker was still starting up, which left the parsed tile in the worker for the lifetime of the map (#8516) (by @cherenkov)
Fire a contextmenu map event on long press for touch devices (#373) (by @kirthi-b)
Transition paint, light and sky properties that read global-state from the value they had when the state changes, where they snapped to the new value while holding idle for the transition duration (#8395) (by @avosa)
Speed up cross-tile symbol matching for sources with promoteId by keying symbols on their feature id as well as their label (#8470, continues #7665) (by @bradymadden97 and @johncarmack1984)
Add Map#calculateAnchoredCameraOptions to calculate camera options that place a geographic anchor at a screen position without moving the map (#8288) (by @xavierjs)
Skip the loaded-tile scan for constant symbol-height-offset layers when computing tile coverage (#8424) (by @clement-igonet)
Type and document that an addProtocol handler may return an ImageBitmap or HTMLImageElement for an image resource, so decoded pixels are not encoded and decoded again (#8515) (by @MannXo)
🐞 Bug fixes
Fade the globe atmosphere in with the camera's altitude, so the sky keeps the horizon until the atmosphere takes over from space (#8464) (by @birkskyum)
Report worker script failures through the map error event (#8018) (by @xavierjs)
Show the sky in globe view, fading out with altitude instead of with the globe to mercator transition (#8464) (by @birkskyum)
Speed up fill and fill-extrusion triangulation by looking up each vertex's deduplicated index once instead of hashing every triangle corner, and every outline point of a ring that is not subdivided, again (#8425) (by @cherenkov)
Test whether a Marker is behind terrain with a CPU ray walk over the DEM instead of a depth-buffer readback, removing a GPU stall per marker while a map with terrain moves (#8387) (by @johncarmack1984)
Fix setStyle calling Map.setTerrain with the wrong this, which made a terrain change in a style diff throw (#8451) (by @HarelM)
Fix hillshade rendering artifacts on mobile GPUs at high zoom levels (#8431) (by @Turbo87)
Free the pooled terrain drape textures once the map is at rest and when terrain is removed, instead of keeping every drape allocated during a pan resident for the life of the map (#8400) (by @johncarmack1984)
Stop the scale control forcing a synchronous layout and rewriting its DOM on every frame of a pan or zoom (#8403) (by @cherenkov)
Speed up merging adjacent symbol-placement: line features that share a label, which took time quadratic in the number of features that chain together (#8436) (by @cherenkov)
Convert the fill-extrusion-rounded-corner-distance rounding distance to tile units once per tile instead of once per feature (#8435) (by @cherenkov)
🐞 Bug fixes
Redraw terrain depth when DEM tiles arrive so occluded symbols and markers stay hidden (#8447) (by @ArcSolver)
Fix raster tiles getting stuck at the start of a fade-in until the map moves. (#8430) (by @Kanahiro)
Fix fill-extrusion-vertical-gradient disappearing over 3D terrain, where the gradient was computed from the extrusion's height above sea level instead of its own height (#8410) (by @ArcSolver)
Fix 3D terrain reading elevation from the wrong part of a parent DEM tile while the deepest DEM tile is still loading (#8407) (by @ArcSolver)
Align 3D terrain DEM sampling with hillshade and color-relief at cell centres (#8420) (by @ArcSolver)
Fix setting one paint, light or sky property transitioning every property alongside it, which delayed idle even when nothing could animate and restarted transitions that were still running (#8376) (by @cherenkov)
Fix fill-extrusion-rounded-corner-distance rounding every feature twice, which over-rounded the corners and inflated the vertex count (#8429) (by @cherenkov)
Fix Map#project returning an incorrect on-screen point for a location behind the camera. It now returns a point outside the viewport, on the side through which the location left the screen, so DOM markers and popups are moved off-screen as expected. (#8292) (by @schickm)
Improved support for drawing the letters of Devanagari, Khmer, Burmese and the other complex scripts and also draws Arabic and Hebrew labels correctly without loading a right-to-left text plugin, which deprecates setRTLTextPlugin and getRTLTextPluginStatus (#8343) (by @HarelM)
Read sprite and image pixels back through an OffscreenCanvas where available, removing a main-thread stall of tens of milliseconds on GPU-accelerated browsers when a sprite loads (#8339) (by @cherenkov)
Skip clipping masks for layers hidden at the current zoom and stop re-binding dynamic buffers on cached vertex array binds, removing redundant WebGL calls every frame (#8369) (by @johncarmack1984)
Re-render at most one stale terrain drape per frame and keep drapes that differ only by zoom while the map moves, so a finger lift over terrain no longer re-renders every tile at once (#8368) (by @johncarmack1984)
🐞 Bug fixes
Fix setStyle() throwing while terrain is still loading because an intermediate render tried to compile a terrain shader before the replacement style initialized its projection (#6824) (by @miakh)
Fix queued GeoJSON updateData property removals throwing after geometry-only updates or retaining previously updated values (#8372) (by @jokrasno)
Treat camera options passed as undefined as not given in jumpTo, easeTo and flyTo; they were coerced to NaN (#8373) (by @vlumi)
Fix a Not implemented. error that broke panning and zooming when the projection was changed while the camera was moving, on maps with terrain enabled or a transformCameraUpdate callback (#8351) (by @lazerg)
Fix a map created inside a hidden container staying at the 400x300 fallback size when the container is shown before the resize observer's first notification is delivered (#8277) (by @spliffone)
Fix MercatorTransform throwing when it is resized to a zero width, and skip the matrix calculation of every projection while the transform has a zero width or height (#8374) (by @avosa)
Fix every style update opening a redundant sky and light transition, which kept idle from firing for the transition duration after the map was otherwise done, and could ease the sky and the light on a different curve from the layers (#8348) (by @cherenkov)
Fix DOM sanitization for iframe and srcdoc (#8396) (by @HarelM)
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)
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 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)
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)
Support the style specification's font-faces property, with map.setFontFaces and map.getFontFaces and improve complex script languages such as Devanagari, Khmer, Burmese and Hebrew (#8237) (by @HarelM)
Wrap Thai, Khmer, Burmese, Lao, Tibetan, Javanese and Balinese labels at word boundaries instead of running them on in one line, which applies to every style whether or not it declares font-faces (#8237) (by @HarelM)
Throw GPUInitializationError from the Map constructor when the WebGL2 context cannot be created, instead of firing an error event no listener can catch and returning a partially constructed map (#8066) (by @johncarmack1984)
Allow adding an image source without a url. The source starts empty and makes no network request; call updateImage({image}) or updateImage({url}) later to show an image (#8167) (by @mondsichtung)
Skip symbol re-placement when its inputs are unchanged, so repaints from animated style images or custom layers cost a single frame (#8208) (by @lucaswoj)
Add Style#triggerSymbolPlacement, which re-places symbols when something the map cannot see for itself has moved them (#8208) (by @lucaswoj)
Make {validate: false} skip the style snapshot the style setters only build as error context, so adding layers one at a time no longer serializes the whole style on every call (#8259) (by @lazerg)
🐞 Bug fixes
Disable the navigation control's zoom-out button when viewport constraints prevent zooming out further (#5316) (by @miakh)
Keep a vector tile's etag when the tile is reloaded after a style change, so the next expiry refresh can still skip unchanged tiles (#3309) (by @johncarmack1984)
Fix project() and queryTerrainElevation disagreeing with the rendered terrain surface when the elevation lookup sampled a different DEM zoom than the drawn mesh (#8212) (by @johncarmack1984)
Draw numbers (e.g. “21” in “반포대로21길”) and short uppercase codes (e.g. “A1”) upright in vertical line labels instead of rotating them along the line (#5404) (by @NEKOYASAN)
Fix the camera jumping at the end of a pan or zoom gesture on terrain by sampling the center elevation from the rendered terrain surface (#7989, #3982) (by @johncarmack1984)
Ensure style state defaults are serialized (#8263) (by @hiddewie)
Configuration
📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this PR and you won't be reminded about this update again.
If you want to rebase/retry this PR, check this box
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [maplibre-gl](https://maplibre.org/) ([source](https://github.com/maplibre/maplibre-gl-js)) | [`6.6.0` → `6.16.0`](https://renovatebot.com/diffs/npm/maplibre-gl/6.6.0/6.16.0) |  |  |
---
### Release Notes
<details>
<summary>maplibre/maplibre-gl-js (maplibre-gl)</summary>
### [`v6.16.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6160)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.15.0...v6.16.0)
##### ✨ Features and improvements
- Allow `Map#setMaxBounds` to constrain one geographic axis without constraining the other ([#​6148](https://github.com/maplibre/maplibre-gl-js/issues/6148)) (by [@​erenbati](https://github.com/erenbati))
- Allow calling `new Map({ transformStyle: { ... }})` to provide a style transformation function similar to the same option in `setStyle` ([#​8786](https://github.com/maplibre/maplibre-gl-js/pull/8786)) (by [@​hiddewie](https://github.com/hiddewie))
- Add accept headers for MLT according to the current capabilities ([#​7483](https://github.com/maplibre/maplibre-gl-js/pull/7483)) (by [@​CommanderStorm](https://github.com/CommanderStorm))
##### 🐞 Bug fixes
- Fix expired vector tiles erroring on their next reload, e.g. after `setFilter()`, when the server returns an unchanged ETag ([#​8771](https://github.com/maplibre/maplibre-gl-js/pull/8771)) (by [@​DoFabien](https://github.com/DoFabien))
- Fix `GeoJSONSource.getBounds` throwing when a feature has a `null` geometry ([#​8814](https://github.com/maplibre/maplibre-gl-js/pull/8814)) (by [@​auraseb](https://github.com/auraseb))
- Fix characters covered by `font-faces` switching to glyphs from the glyphs URL once their PBF range is downloaded ([#​8490](https://github.com/maplibre/maplibre-gl-js/pull/8490)) (by [@​NEKOYASAN](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8837)) (by [@​lazerg](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8846)) (by [@​yulman2207](https://github.com/yulman2207))
- Fix `GeoJSONSource.updateData` applying a queued update to a feature that a later call adds again ([#​8804](https://github.com/maplibre/maplibre-gl-js/issues/8804)) (by [@​architpai](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/pull/8858)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix maps that stop loading after iOS shuts down their background workers to save memory ([#​8461](https://github.com/maplibre/maplibre-gl-js/issues/8461), [#​8491](https://github.com/maplibre/maplibre-gl-js/pull/8491)) (by [@​lucaswoj](https://github.com/lucaswoj), [@​ingalls](https://github.com/ingalls), and [@​HarelM](https://github.com/HarelM))
- Fix vector tiles past the source's maxzoom failing to load when slicing leaves a one-point line ([#​8681](https://github.com/maplibre/maplibre-gl-js/issues/8681)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix terrain drawing flat at low zoom, where its tiles are at the DEM source's minzoom ([#​8772](https://github.com/maplibre/maplibre-gl-js/issues/8772)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `queryRenderedFeatures` missing part of a GeoJSON polygon whose ring does not repeat its first point ([#​8874](https://github.com/maplibre/maplibre-gl-js/issues/8874)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
### [`v6.15.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6150)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.14.0...v6.15.0)
##### ✨ Features and improvements
- Add `dragRotate: {around: 'pointer'}` to turn and tilt the map around the point under the pointer, and `{around: 'center', movement: 'circular' | 'linear'}`, which replaces the deprecated `aroundCenter` ([#​8628](https://github.com/maplibre/maplibre-gl-js/pull/8628)) (by [@​birkskyum](https://github.com/birkskyum))
- Redraw fewer layers on terrain when a custom layer's `terrainTileRevision` or a feature state changes ([#​8782](https://github.com/maplibre/maplibre-gl-js/pull/8782)) (by [@​birkskyum](https://github.com/birkskyum))
- Support the `hash` option in a projection registered with `addProjection` ([#​8743](https://github.com/maplibre/maplibre-gl-js/pull/8743)) (by [@​birkskyum](https://github.com/birkskyum))
- Add experimental `addProjection`, `removeProjection`, a built-in `identity` projection and a `{bbox}` tile URL token for maps in a custom planar CRS with its own quad tile grid ([#​168](https://github.com/maplibre/maplibre-gl-js/issues/168), [#​5764](https://github.com/maplibre/maplibre-gl-js/issues/5764))
- Speed up tile loading by skipping point labels in the tile buffer, which the neighbouring tile draws ([#​8535](https://github.com/maplibre/maplibre-gl-js/pull/8535)) (by [@​cherenkov](https://github.com/cherenkov))
- Project GeoJSON sources on a map in a registered CRS, in the workers, from a `definition` string and a projection handler ([#​8736](https://github.com/maplibre/maplibre-gl-js/issues/8736)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Support OpenType `vert` forms in vertical labels rendered with `font-faces` ([#​8489](https://github.com/maplibre/maplibre-gl-js/pull/8489)) (by [@​NEKOYASAN](https://github.com/NEKOYASAN))
##### 🐞 Bug fixes
- Fix a map in a registered projection going blank when its center crosses 180° ([#​8802](https://github.com/maplibre/maplibre-gl-js/pull/8802)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix world projections like Equal Earth throwing and jumping when the mouse is in the space around the world ([#​8803](https://github.com/maplibre/maplibre-gl-js/pull/8803)) (by [@​birkskyum](https://github.com/birkskyum))
- Work around a regression in Safari 26.6 and later where the map stops loading tiles after the page was in the background ([#​8780](https://github.com/maplibre/maplibre-gl-js/pull/8780)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix labels in Brahmic scripts such as Devanagari, Thai and Telugu mixing fonts or dropping letters when the style has a glyphs URL ([#​8741](https://github.com/maplibre/maplibre-gl-js/issues/8741)) (by [@​crackalamoo](https://github.com/crackalamoo))
- Fix `setWorkerUrl` treating a `.cjs` fragment or query marker as a module worker URL ([#​8769](https://github.com/maplibre/maplibre-gl-js/issues/8769)) (by [@​Anandb71](https://github.com/Anandb71))
- Fix the terrain not finding a tile's own DEM data when the DEM source's maxzoom is below the terrain tile zoom ([#​8765](https://github.com/maplibre/maplibre-gl-js/pull/8765)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix the camera dropping to sea level while the terrain under the center of a `jumpTo`, `easeTo` or `flyTo` loads ([#​8549](https://github.com/maplibre/maplibre-gl-js/issues/8549)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix a grid of lines along tile borders in line layers of sliced overzoomed tiles when the source tile extent is larger than 4096, by scaling the clip buffer with the extent ([#​8705](https://github.com/maplibre/maplibre-gl-js/pull/8705)) (by [@​tordans](https://github.com/tordans))
- Fix the globe drag rounding its rotation to single precision ([#​8784](https://github.com/maplibre/maplibre-gl-js/pull/8784)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `load` and `idle` firing before the other tiles finish loading when one tile fails ([#​8785](https://github.com/maplibre/maplibre-gl-js/pull/8785)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Avoid using `.innerHTML = …` for the Popup close icon ([#​8795](https://github.com/maplibre/maplibre-gl-js/pull/8795)) (by [@​k-yle](https://github.com/k-yle))
- Fix a GeoJSON feature without coordinates staying out of the tiles after `updateData` gives it some, by updating geojson-vt to 6.3.0 ([#​8797](https://github.com/maplibre/maplibre-gl-js/pull/8797)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
### [`v6.14.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6140)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.13.0...v6.14.0)
##### ✨ Features and improvements
- Allow calling `new Map({ globalState: { ... }})` and `setStyle({ globalState: ... })` to provide an initial global state for the map style, overriding the global state defaults from the style ([#​7632](https://github.com/maplibre/maplibre-gl-js/issues/7632)) (by [@​hiddewie](https://github.com/hiddewie))
##### 🐞 Bug fixes
- fix: `ScaleControl` throwing when its sample points miss the globe ([#​8720](https://github.com/maplibre/maplibre-gl-js/pull/8720)) (by [@​SatvikMishra08](https://github.com/SatvikMishra08))
- Fix a rendering crash when `removeFeatureState` removes a property before feature state is set ([#​8715](https://github.com/maplibre/maplibre-gl-js/pull/8715)) (by [@​yeomin4242](https://github.com/yeomin4242))
- Work around blank, unresponsive maps on affected iPadOS 16 Safari devices ([#​8364](https://github.com/maplibre/maplibre-gl-js/pull/8364)) (by [@​samuelsmarason](https://github.com/samuelsmarason))
- Fix circles with `circle-pitch-alignment: map` being drawn too large while the globe transitions to mercator ([#​8714](https://github.com/maplibre/maplibre-gl-js/issues/8714)) (by [@​heikki](https://github.com/heikki))
- Fix `map.resize(eventData, false)` constraining the camera with the `vertical-perspective` projection ([#​8695](https://github.com/maplibre/maplibre-gl-js/pull/8695)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix an uncaught error when `setStyle` is called while the WebGL context is lost, since 6.12.0 ([#​8693](https://github.com/maplibre/maplibre-gl-js/pull/8693)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix the view sliding hundreds of meters off the center when terrain is switched on during a gesture ([#​8688](https://github.com/maplibre/maplibre-gl-js/pull/8688)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix the camera jumping back at the end of a pan, flick or rotation into terrain ([#​8692](https://github.com/maplibre/maplibre-gl-js/pull/8692)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `flyTo` dropping the `offset` and `around` options under `prefers-reduced-motion`, so a reduced-motion fly lands at the same camera as the animated one ([#​8730](https://github.com/maplibre/maplibre-gl-js/pull/8730)) (by [@​maartenla](https://github.com/maartenla))
- Fix `load` and `idle` never firing when the last tile fails with a status other than 404 ([#​8733](https://github.com/maplibre/maplibre-gl-js/pull/8733)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
### [`v6.13.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6130)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.12.0...v6.13.0)
##### ✨ Features and improvements
- Let the globe center reach the poles, where it stopped at 85.05° ([#​8629](https://github.com/maplibre/maplibre-gl-js/pull/8629)) (by [@​birkskyum](https://github.com/birkskyum))
- Speed up symbol layout by skipping line breaking for labels that fit on one line ([#​8617](https://github.com/maplibre/maplibre-gl-js/pull/8617)) (by [@​DoFabien](https://github.com/DoFabien))
- Add experimental `CustomLayerInterface.renderToTerrainTile`, `CustomLayerInterface.terrainTileRevision` and `renderTerrainHeightMap` in the options of `prerender`, so custom layers can drape what they draw over the terrain and place objects on it on the GPU ([#​8588](https://github.com/maplibre/maplibre-gl-js/pull/8588)) (by [@​birkskyum](https://github.com/birkskyum))
##### 🐞 Bug fixes
- Fix a stale cached worker crashing the map after an upgrade: the worker is self-contained again instead of importing `maplibre-gl-shared.mjs`, and its default URL carries the version as a `v` query parameter. `maplibre-gl-shared.mjs` and `maplibre-gl-shared-dev.mjs` are now empty files, kept so that existing copy steps don't fail; they are deprecated and will be removed in the next major version ([#​8621](https://github.com/maplibre/maplibre-gl-js/issues/8621)) (by [@​HarelM](https://github.com/HarelM))
- Fix `globeDistanceOfLocationsPixels` returning `NaN` when two copies of the same point have a dot product slightly above 1 ([#​8624](https://github.com/maplibre/maplibre-gl-js/pull/8624))(by [@​Dimononon](https://github.com/Dimononon))
- Keep the camera above the terrain, where a scroll zoom into a mountain could take it under the surface and the zoom's end throw it kilometers up ([#​8539](https://github.com/maplibre/maplibre-gl-js/issues/8539)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
### [`v6.12.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6120)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.11.2...v6.12.0)
##### ✨ 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](https://github.com/maplibre/maplibre-gl-js/issues/7908), [#​8324](https://github.com/maplibre/maplibre-gl-js/pull/8324), continues [#​7909](https://github.com/maplibre/maplibre-gl-js/pull/7909)) (by [@​timsluis](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8475)) (by [@​clement-igonet](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/pull/8434)) (by [@​cherenkov](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8480)) (by [@​sargunv](https://github.com/sargunv))
##### 🐞 Bug fixes
- fix(CanvasSource): catch load errors and fire map.error like ImageSource ([#​8448](https://github.com/maplibre/maplibre-gl-js/issues/8448)) ([#​8450](https://github.com/maplibre/maplibre-gl-js/pull/8450)) (by [@​SatvikMishra08](https://github.com/SatvikMishra08))
- Fix `GeoJSONSource` still sending its waiting updates to the worker after the source is removed ([#​8585](https://github.com/maplibre/maplibre-gl-js/pull/8585)) (by [@​clementperon](https://github.com/clementperon))
- Fix `GeoJSONSource` memory growing until the page crashes when `setData` is called faster than the worker handles it ([#​8585](https://github.com/maplibre/maplibre-gl-js/pull/8585)) (by [@​clementperon](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8605)) (by [@​johncarmack1984](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/pull/8548)) (by [@​johncarmack1984](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8539)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix a hole around the poles of the globe in background, fill and line layers from zoom 3 ([#​8638](https://github.com/maplibre/maplibre-gl-js/pull/8638)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix `jumpTo`, and the setters that use it, pulling the center elevation onto the terrain when `centerClampedToGround` is false ([#​8566](https://github.com/maplibre/maplibre-gl-js/issues/8566)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `GeoJSONSource#updateData` leaving stale clusters on untouched tiles after clustering was turned on with `setClusterOptions` ([#​8613](https://github.com/maplibre/maplibre-gl-js/pull/8613)) (by [@​clementperon](https://github.com/clementperon))
- Fix `GeoJSONSource#setClusterOptions` clustering twice when called while new data is waiting to be sent ([#​8613](https://github.com/maplibre/maplibre-gl-js/pull/8613)) (by [@​clementperon](https://github.com/clementperon))
- Fix `GeoJSONSource` data set with `setData` being overwritten by the result of an earlier URL load or `updateData` ([#​8613](https://github.com/maplibre/maplibre-gl-js/pull/8613)) (by [@​clementperon](https://github.com/clementperon))
- Fix fill-extrusion walls facing exactly east or west skipping `fill-extrusion-vertical-gradient` and rendering brighter than the other walls ([#​8604](https://github.com/maplibre/maplibre-gl-js/pull/8604)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix `easeTo` and `flyTo` pulling the center elevation onto the terrain when `centerClampedToGround` is false ([#​8566](https://github.com/maplibre/maplibre-gl-js/issues/8566)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `fill-outline-color`, and the antialiased edge of fills, not being drawn when terrain is enabled ([#​4200](https://github.com/maplibre/maplibre-gl-js/issues/4200)) (by [@​clement-igonet](https://github.com/clement-igonet))
- Respect map padding when constraining the camera to max bounds, so the padded viewport can pan fully to its edges ([#​8501](https://github.com/maplibre/maplibre-gl-js/issues/8501)) (by [@​erenbati](https://github.com/erenbati))
- Fix an unclosed disallowed tag in one attribution erasing the other attributions, by sanitizing each attribution before joining them ([#​8569](https://github.com/maplibre/maplibre-gl-js/issues/8569)) (by [@​sx4im](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/6411)) (by [@​drakeo338](https://github.com/drakeo338))
- Fix `queryRenderedFeatures` missing fill-extrusions on globe once it renders as mercator ([#​8560](https://github.com/maplibre/maplibre-gl-js/pull/8560)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix `line-offset` distorting the line width around joins ([#​8570](https://github.com/maplibre/maplibre-gl-js/pull/8570)) (by [@​HarelM](https://github.com/HarelM))
- Cross-fade raster tiles when zooming out from a source's `maxzoom`, where the tiles switched instantly ([#​8517](https://github.com/maplibre/maplibre-gl-js/pull/8517)) (by [@​cherenkov](https://github.com/cherenkov))
- Mark a program as failed to create instead of throwing when the WebGL context is lost or a failed link reports zero attached shaders, where a dead GPU process made every query answer dead before `webglcontextlost` arrived ([#​8607](https://github.com/maplibre/maplibre-gl-js/issues/8607)) (by [@​rubenmarcus](https://github.com/rubenmarcus))
### [`v6.11.2`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6112)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.11.1...v6.11.2)
##### ✨ Features and improvements
- Improve rendering performance by uploading each tile's projection data once per frame instead of before every draw call ([#​8545](https://github.com/maplibre/maplibre-gl-js/pull/8545)) (by [@​birkskyum](https://github.com/birkskyum))
- Support multiple glyph variants in requests, caches, and atlases ([#​8488](https://github.com/maplibre/maplibre-gl-js/pull/8488)) (by [@​NEKOYASAN](https://github.com/NEKOYASAN))
##### 🐞 Bug fixes
- Fix `Map#once(type, layerId, listener)` unsubscribing on the first event that misses the layer instead of the first event that hits it ([#​8499](https://github.com/maplibre/maplibre-gl-js/pull/8499)) (by [@​cherenkov](https://github.com/cherenkov))
- Remove hillshade gradient toward the poles ([#​8551](https://github.com/maplibre/maplibre-gl-js/pull/8551)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix camera settings being undone during camera movement with terrain or `transformCameraUpdate` ([#​8550](https://github.com/maplibre/maplibre-gl-js/pull/8550)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix zooming and panning with the pointer above the horizon moving the map in the opposite direction ([#​8544](https://github.com/maplibre/maplibre-gl-js/pull/8544)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix the camera jumping when a drag over terrain ends at a pitch above 84° ([#​8541](https://github.com/maplibre/maplibre-gl-js/pull/8541)) (by [@​birkskyum](https://github.com/birkskyum))
- Ease the center elevation over terrain during `easeTo` and `flyTo` instead of holding it and jumping when the animation ends ([#​8543](https://github.com/maplibre/maplibre-gl-js/pull/8543)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `fitBounds` and `cameraForBounds` throwing on the globe projection when the padding exceeds the viewport, instead of warning and returning `undefined` as on mercator ([#​8538](https://github.com/maplibre/maplibre-gl-js/issues/8538)) (by [@​drakeo338](https://github.com/drakeo338))
- Keep raster tiles sharp at a fractional `devicePixelRatio`, where the canvas covered a different number of device pixels than its backing store held and the compositor rescaled it ([#​1590](https://github.com/maplibre/maplibre-gl-js/issues/1590)) (by [@​zdila](https://github.com/zdila))
### [`v6.11.1`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6111)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.11.0...v6.11.1)
##### 🐞 Bug fixes
- Fix missing promoteId when merging queued updateData diffs in geojson source ([#​8500](https://github.com/maplibre/maplibre-gl-js/pull/8500)) (by [@​cherenkov](https://github.com/cherenkov))
- Sanitize attribution with an allow list of tags and attributes rather than a list of known-dangerous ones ([#​8532](https://github.com/maplibre/maplibre-gl-js/pull/8532)) (by [@​HarelM](https://github.com/HarelM))
- Fix the camera jumping or bobbing around gestures over terrain, and ignoring terrain that loads after `easeTo`/`flyTo` ([#​8471](https://github.com/maplibre/maplibre-gl-js/pull/8471)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Stop sending a vector tile to the worker when it was dropped while its request was being transformed or while the worker was still starting up, which left the parsed tile in the worker for the lifetime of the map ([#​8516](https://github.com/maplibre/maplibre-gl-js/pull/8516)) (by [@​cherenkov](https://github.com/cherenkov))
### [`v6.11.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6110)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.10.0...v6.11.0)
##### ✨ Features and improvements
- Fire a `contextmenu` map event on long press for touch devices ([#​373](https://github.com/maplibre/maplibre-gl-js/issues/373)) (by [@​kirthi-b](https://github.com/kirthi-b))
- Transition paint, light and sky properties that read `global-state` from the value they had when the state changes, where they snapped to the new value while holding `idle` for the transition duration ([#​8395](https://github.com/maplibre/maplibre-gl-js/issues/8395)) (by [@​avosa](https://github.com/avosa))
- Speed up cross-tile symbol matching for sources with `promoteId` by keying symbols on their feature id as well as their label ([#​8470](https://github.com/maplibre/maplibre-gl-js/pull/8470), continues [#​7665](https://github.com/maplibre/maplibre-gl-js/pull/7665)) (by [@​bradymadden97](https://github.com/bradymadden97) and [@​johncarmack1984](https://github.com/johncarmack1984))
- Add `Map#calculateAnchoredCameraOptions` to calculate camera options that place a geographic anchor at a screen position without moving the map ([#​8288](https://github.com/maplibre/maplibre-gl-js/pull/8288)) (by [@​xavierjs](https://github.com/xavierjs))
- Skip the loaded-tile scan for constant `symbol-height-offset` layers when computing tile coverage ([#​8424](https://github.com/maplibre/maplibre-gl-js/pull/8424)) (by [@​clement-igonet](https://github.com/clement-igonet))
- Type and document that an `addProtocol` handler may return an `ImageBitmap` or `HTMLImageElement` for an image resource, so decoded pixels are not encoded and decoded again ([#​8515](https://github.com/maplibre/maplibre-gl-js/issues/8515)) (by [@​MannXo](https://github.com/MannXo))
##### 🐞 Bug fixes
- Fade the globe atmosphere in with the camera's altitude, so the sky keeps the horizon until the atmosphere takes over from space ([#​8464](https://github.com/maplibre/maplibre-gl-js/pull/8464)) (by [@​birkskyum](https://github.com/birkskyum))
- Report worker script failures through the map `error` event ([#​8018](https://github.com/maplibre/maplibre-gl-js/issues/8018)) (by [@​xavierjs](https://github.com/xavierjs))
- Fix slow panning and zooming in Firefox on macOS since 6.8.0 ([#​8468](https://github.com/maplibre/maplibre-gl-js/issues/8468)) (by [@​timsluis](https://github.com/timsluis) and [@​birkskyum](https://github.com/birkskyum))
- Keep source-specific tile LOD settings from changing internal terrain render-to-texture tile selection ([#​8048](https://github.com/maplibre/maplibre-gl-js/pull/8048)) (by [@​DoFabien](https://github.com/DoFabien))
- Fix `map.setSky()` silently keeping the old sky and firing no `error` event when the value included a `-transition` key ([#​8375](https://github.com/maplibre/maplibre-gl-js/issues/8375)) (by [@​Yasser-Ameur](https://github.com/Yasser-Ameur))
- Fix markers and popups misplaced after a projection change or by terrain that loads after the map settled. ([#​8433](https://github.com/maplibre/maplibre-gl-js/pull/8433)) (by [@​patte](https://github.com/patte))
- Insert sanitized attribution HTML as DOM nodes instead of re-parsing a serialized string ([#​8528](https://github.com/maplibre/maplibre-gl-js/pull/8528)) (by [@​cherenkov](https://github.com/cherenkov))
### [`v6.10.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#6100)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.9.1...v6.10.0)
##### ✨ Features and improvements
- Show the sky in globe view, fading out with altitude instead of with the globe to mercator transition ([#​8464](https://github.com/maplibre/maplibre-gl-js/pull/8464)) (by [@​birkskyum](https://github.com/birkskyum))
- Speed up fill and fill-extrusion triangulation by looking up each vertex's deduplicated index once instead of hashing every triangle corner, and every outline point of a ring that is not subdivided, again ([#​8425](https://github.com/maplibre/maplibre-gl-js/pull/8425)) (by [@​cherenkov](https://github.com/cherenkov))
- Test whether a `Marker` is behind terrain with a CPU ray walk over the DEM instead of a depth-buffer readback, removing a GPU stall per marker while a map with terrain moves ([#​8387](https://github.com/maplibre/maplibre-gl-js/pull/8387)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
##### 🐞 Bug fixes
- Fix partially blank maps in older Safari versions ([#​8427](https://github.com/maplibre/maplibre-gl-js/issues/8427)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix `setStyle` calling `Map.setTerrain` with the wrong `this`, which made a terrain change in a style diff throw ([#​8451](https://github.com/maplibre/maplibre-gl-js/pull/8451)) (by [@​HarelM](https://github.com/HarelM))
- Fix hillshade rendering artifacts on mobile GPUs at high zoom levels ([#​8431](https://github.com/maplibre/maplibre-gl-js/pull/8431)) (by [@​Turbo87](https://github.com/Turbo87))
- Free the pooled terrain drape textures once the map is at rest and when terrain is removed, instead of keeping every drape allocated during a pan resident for the life of the map ([#​8400](https://github.com/maplibre/maplibre-gl-js/pull/8400)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
### [`v6.9.1`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#691)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.9.0...v6.9.1)
##### ✨ Features and improvements
- Stop the scale control forcing a synchronous layout and rewriting its DOM on every frame of a pan or zoom ([#​8403](https://github.com/maplibre/maplibre-gl-js/pull/8403)) (by [@​cherenkov](https://github.com/cherenkov))
- Speed up merging adjacent `symbol-placement: line` features that share a label, which took time quadratic in the number of features that chain together ([#​8436](https://github.com/maplibre/maplibre-gl-js/pull/8436)) (by [@​cherenkov](https://github.com/cherenkov))
- Convert the `fill-extrusion-rounded-corner-distance` rounding distance to tile units once per tile instead of once per feature ([#​8435](https://github.com/maplibre/maplibre-gl-js/pull/8435)) (by [@​cherenkov](https://github.com/cherenkov))
##### 🐞 Bug fixes
- Redraw terrain depth when DEM tiles arrive so occluded symbols and markers stay hidden ([#​8447](https://github.com/maplibre/maplibre-gl-js/pull/8447)) (by [@​ArcSolver](https://github.com/ArcSolver))
- Fix raster tiles getting stuck at the start of a fade-in until the map moves. ([#​8430](https://github.com/maplibre/maplibre-gl-js/pull/8430)) (by [@​Kanahiro](https://github.com/Kanahiro))
- Fix `fill-extrusion-vertical-gradient` disappearing over 3D terrain, where the gradient was computed from the extrusion's height above sea level instead of its own height ([#​8410](https://github.com/maplibre/maplibre-gl-js/pull/8410)) (by [@​ArcSolver](https://github.com/ArcSolver))
- Fix missing map layers after custom layer rendering ([#​8406](https://github.com/maplibre/maplibre-gl-js/pull/8406)) (by [@​birkskyum](https://github.com/birkskyum))
- Fix 3D terrain reading elevation from the wrong part of a parent DEM tile while the deepest DEM tile is still loading ([#​8407](https://github.com/maplibre/maplibre-gl-js/pull/8407)) (by [@​ArcSolver](https://github.com/ArcSolver))
- Align 3D terrain DEM sampling with hillshade and color-relief at cell centres ([#​8420](https://github.com/maplibre/maplibre-gl-js/pull/8420)) (by [@​ArcSolver](https://github.com/ArcSolver))
- Fix setting one paint, light or sky property transitioning every property alongside it, which delayed `idle` even when nothing could animate and restarted transitions that were still running ([#​8376](https://github.com/maplibre/maplibre-gl-js/issues/8376)) (by [@​cherenkov](https://github.com/cherenkov))
- Fix `fill-extrusion-rounded-corner-distance` rounding every feature twice, which over-rounded the corners and inflated the vertex count ([#​8429](https://github.com/maplibre/maplibre-gl-js/pull/8429)) (by [@​cherenkov](https://github.com/cherenkov))
- Fix `Map#project` returning an incorrect on-screen point for a location behind the camera. It now returns a point outside the viewport, on the side through which the location left the screen, so DOM markers and popups are moved off-screen as expected. ([#​8292](https://github.com/maplibre/maplibre-gl-js/issues/8292)) (by [@​schickm](https://github.com/schickm))
### [`v6.9.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#690)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.8.0...v6.9.0)
##### ✨ Features and improvements
- Improved support for drawing the letters of Devanagari, Khmer, Burmese and the other complex scripts and also draws Arabic and Hebrew labels correctly without loading a right-to-left text plugin, which deprecates `setRTLTextPlugin` and `getRTLTextPluginStatus` ([#​8343](https://github.com/maplibre/maplibre-gl-js/pull/8343)) (by [@​HarelM](https://github.com/HarelM))
- Read sprite and image pixels back through an `OffscreenCanvas` where available, removing a main-thread stall of tens of milliseconds on GPU-accelerated browsers when a sprite loads ([#​8339](https://github.com/maplibre/maplibre-gl-js/pull/8339)) (by [@​cherenkov](https://github.com/cherenkov))
- Skip clipping masks for layers hidden at the current zoom and stop re-binding dynamic buffers on cached vertex array binds, removing redundant WebGL calls every frame ([#​8369](https://github.com/maplibre/maplibre-gl-js/pull/8369)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Re-render at most one stale terrain drape per frame and keep drapes that differ only by zoom while the map moves, so a finger lift over terrain no longer re-renders every tile at once ([#​8368](https://github.com/maplibre/maplibre-gl-js/pull/8368)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
##### 🐞 Bug fixes
- Fix `setStyle()` throwing while terrain is still loading because an intermediate render tried to compile a terrain shader before the replacement style initialized its projection ([#​6824](https://github.com/maplibre/maplibre-gl-js/issues/6824)) (by [@​miakh](https://github.com/miakh))
- Fix queued GeoJSON `updateData` property removals throwing after geometry-only updates or retaining previously updated values ([#​8372](https://github.com/maplibre/maplibre-gl-js/pull/8372)) (by [@​jokrasno](https://github.com/jokrasno))
- Treat camera options passed as `undefined` as not given in `jumpTo`, `easeTo` and `flyTo`; they were coerced to NaN ([#​8373](https://github.com/maplibre/maplibre-gl-js/pull/8373)) (by [@​vlumi](https://github.com/vlumi))
- Fix a `Not implemented.` error that broke panning and zooming when the projection was changed while the camera was moving, on maps with terrain enabled or a `transformCameraUpdate` callback ([#​8351](https://github.com/maplibre/maplibre-gl-js/issues/8351)) (by [@​lazerg](https://github.com/lazerg))
- Fix a map created inside a hidden container staying at the `400x300` fallback size when the container is shown before the resize observer's first notification is delivered ([#​8277](https://github.com/maplibre/maplibre-gl-js/issues/8277)) (by [@​spliffone](https://github.com/spliffone))
- Fix `MercatorTransform` throwing when it is resized to a zero width, and skip the matrix calculation of every projection while the transform has a zero width or height ([#​8374](https://github.com/maplibre/maplibre-gl-js/pull/8374)) (by [@​avosa](https://github.com/avosa))
- Fix every style update opening a redundant sky and light transition, which kept `idle` from firing for the transition duration after the map was otherwise done, and could ease the sky and the light on a different curve from the layers ([#​8348](https://github.com/maplibre/maplibre-gl-js/issues/8348)) (by [@​cherenkov](https://github.com/cherenkov))
- Fix DOM sanitization for iframe and srcdoc ([#​8396](https://github.com/maplibre/maplibre-gl-js/pull/8396)) (by [@​HarelM](https://github.com/HarelM))
### [`v6.8.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#680)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.7.0...v6.8.0)
##### ✨ 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](https://github.com/maplibre/maplibre-gl-js/issues/7109)) (by [@​bradymadden97](https://github.com/bradymadden97) and [@​giswqs](https://github.com/giswqs))
- Sample terrain render-to-texture output through mipmaps with trilinear filtering, so draped layers stop shimmering and aliasing at high pitch ([#​8328](https://github.com/maplibre/maplibre-gl-js/pull/8328), continues [#​7673](https://github.com/maplibre/maplibre-gl-js/pull/7673)) (by [@​AveryanAlex](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/pull/8337)) (by [@​cherenkov](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/pull/8338)) (by [@​cherenkov](https://github.com/cherenkov))
- Build the default `Marker` pin once and clone it per marker, so creating many default markers takes roughly half the constructor time ([#​8340](https://github.com/maplibre/maplibre-gl-js/pull/8340)) (by [@​cherenkov](https://github.com/cherenkov))
- Add SDF rendering support for fill patterns, using `fill-color` as the foreground color ([#​7747](https://github.com/maplibre/maplibre-gl-js/pull/7747)) (by [@​bradymadden97](https://github.com/bradymadden97) and [@​deniial00](https://github.com/deniial00))
- Warn once when the canvas is clamped to `maxCanvasSize`, which previously lowered the rendered resolution silently ([#​8200](https://github.com/maplibre/maplibre-gl-js/issues/8200)) (by [@​str0kes](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/5655), [#​8326](https://github.com/maplibre/maplibre-gl-js/pull/8326), continues [#​5956](https://github.com/maplibre/maplibre-gl-js/pull/5956)) (by [@​yuiseki](https://github.com/yuiseki))
- Fix terrain drape textures not being refreshed after zoom changes, causing stale rendering at the new zoom level ([#​8251](https://github.com/maplibre/maplibre-gl-js/issues/8251)) (by [@​patte](https://github.com/patte))
- Fix a gap between the sky and the ground at high pitch while globe transitions to mercator ([#​7382](https://github.com/maplibre/maplibre-gl-js/issues/7382)) (by [@​birkskyum](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/1551)) (by [@​clement-igonet](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8307)) (by [@​lazerg](https://github.com/lazerg))
- 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](https://github.com/maplibre/maplibre-gl-js/issues/8301)) (by [@​lazerg](https://github.com/lazerg))
- Fix visible seams between hillshade tiles when using linear interpolation. ([#​8302](https://github.com/maplibre/maplibre-gl-js/pull/8302)) (by [@​Turbo87](https://github.com/Turbo87))
- Fix the map freezing when a render task throws an error ([#​6093](https://github.com/maplibre/maplibre-gl-js/issues/6093)) (by [@​UberMouse](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/6584)) (by [@​bigmistqke](https://github.com/bigmistqke) and [@​patte](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8253)) (by [@​clement-igonet](https://github.com/clement-igonet))
- Fix `setTiles` producing stale tile URLs when `loadTile` runs in the same frame ([#​8323](https://github.com/maplibre/maplibre-gl-js/pull/8323)) (by [@​johncarmack1984](https://github.com/johncarmack1984) and [@​nostrorom](https://github.com/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](https://github.com/maplibre/maplibre-gl-js/issues/8316)) (by [@​clement-igonet](https://github.com/clement-igonet))
### [`v6.7.0`](https://github.com/maplibre/maplibre-gl-js/blob/HEAD/CHANGELOG.md#670)
[Compare Source](https://github.com/maplibre/maplibre-gl-js/compare/v6.6.0...v6.7.0)
##### ✨ Features and improvements
- Support the style specification's `font-faces` property, with `map.setFontFaces` and `map.getFontFaces` and improve complex script languages such as Devanagari, Khmer, Burmese and Hebrew ([#​8237](https://github.com/maplibre/maplibre-gl-js/pull/8237)) (by [@​HarelM](https://github.com/HarelM))
- Wrap Thai, Khmer, Burmese, Lao, Tibetan, Javanese and Balinese labels at word boundaries instead of running them on in one line, which applies to every style whether or not it declares `font-faces` ([#​8237](https://github.com/maplibre/maplibre-gl-js/pull/8237)) (by [@​HarelM](https://github.com/HarelM))
- Throw `GPUInitializationError` from the `Map` constructor when the WebGL2 context cannot be created, instead of firing an `error` event no listener can catch and returning a partially constructed map ([#​8066](https://github.com/maplibre/maplibre-gl-js/issues/8066)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Allow adding an image source without a `url`. The source starts empty and makes no network request; call `updateImage({image})` or `updateImage({url})` later to show an image ([#​8167](https://github.com/maplibre/maplibre-gl-js/pull/8167)) (by [@​mondsichtung](https://github.com/mondsichtung))
- Skip symbol re-placement when its inputs are unchanged, so repaints from animated style images or custom layers cost a single frame ([#​8208](https://github.com/maplibre/maplibre-gl-js/pull/8208)) (by [@​lucaswoj](https://github.com/lucaswoj))
- Add `Style#triggerSymbolPlacement`, which re-places symbols when something the map cannot see for itself has moved them ([#​8208](https://github.com/maplibre/maplibre-gl-js/pull/8208)) (by [@​lucaswoj](https://github.com/lucaswoj))
- Make `{validate: false}` skip the style snapshot the style setters only build as error context, so adding layers one at a time no longer serializes the whole style on every call ([#​8259](https://github.com/maplibre/maplibre-gl-js/issues/8259)) (by [@​lazerg](https://github.com/lazerg))
##### 🐞 Bug fixes
- Disable the navigation control's zoom-out button when viewport constraints prevent zooming out further ([#​5316](https://github.com/maplibre/maplibre-gl-js/issues/5316)) (by [@​miakh](https://github.com/miakh))
- Keep a vector tile's etag when the tile is reloaded after a style change, so the next expiry refresh can still skip unchanged tiles ([#​3309](https://github.com/maplibre/maplibre-gl-js/issues/3309)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Fix `project()` and `queryTerrainElevation` disagreeing with the rendered terrain surface when the elevation lookup sampled a different DEM zoom than the drawn mesh ([#​8212](https://github.com/maplibre/maplibre-gl-js/issues/8212)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Draw numbers (e.g. “21” in “반포대로21길”) and short uppercase codes (e.g. “A1”) upright in vertical line labels instead of rotating them along the line ([#​5404](https://github.com/maplibre/maplibre-gl-js/issues/5404)) (by [@​NEKOYASAN](https://github.com/NEKOYASAN))
- Fix the camera jumping at the end of a pan or zoom gesture on terrain by sampling the center elevation from the rendered terrain surface ([#​7989](https://github.com/maplibre/maplibre-gl-js/issues/7989), [#​3982](https://github.com/maplibre/maplibre-gl-js/issues/3982)) (by [@​johncarmack1984](https://github.com/johncarmack1984))
- Ensure style state defaults are serialized ([#​8263](https://github.com/maplibre/maplibre-gl-js/pull/8263)) (by [@​hiddewie](https://github.com/hiddewie))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuOTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
6.6.0→6.16.0Release Notes
maplibre/maplibre-gl-js (maplibre-gl)
v6.16.0Compare Source
✨ Features and improvements
Map#setMaxBoundsto constrain one geographic axis without constraining the other (#6148) (by @erenbati)new Map({ transformStyle: { ... }})to provide a style transformation function similar to the same option insetStyle(#8786) (by @hiddewie)🐞 Bug fixes
setFilter(), when the server returns an unchanged ETag (#8771) (by @DoFabien)GeoJSONSource.getBoundsthrowing when a feature has anullgeometry (#8814) (by @auraseb)font-facesswitching to glyphs from the glyphs URL once their PBF range is downloaded (#8490) (by @NEKOYASAN)webglcontextlostfires, e.g. when a mobile browser returns from the background (#8837) (by @lazerg)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)GeoJSONSource.updateDataapplying a queued update to a feature that a later call adds again (#8804) (by @architpai)addImage, e.g. fromstyleimagemissing, not showing in tiles that were reloaded after the map was panned across 180° (#8858) (by @birkskyum)queryRenderedFeaturesmissing part of a GeoJSON polygon whose ring does not repeat its first point (#8874) (by @johncarmack1984)v6.15.0Compare Source
✨ Features and improvements
dragRotate: {around: 'pointer'}to turn and tilt the map around the point under the pointer, and{around: 'center', movement: 'circular' | 'linear'}, which replaces the deprecatedaroundCenter(#8628) (by @birkskyum)terrainTileRevisionor a feature state changes (#8782) (by @birkskyum)hashoption in a projection registered withaddProjection(#8743) (by @birkskyum)addProjection,removeProjection, a built-inidentityprojection and a{bbox}tile URL token for maps in a custom planar CRS with its own quad tile grid (#168, #5764)definitionstring and a projection handler (#8736) (by @johncarmack1984)vertforms in vertical labels rendered withfont-faces(#8489) (by @NEKOYASAN)🐞 Bug fixes
setWorkerUrltreating a.cjsfragment or query marker as a module worker URL (#8769) (by @Anandb71)jumpTo,easeToorflyToloads (#8549) (by @johncarmack1984)loadandidlefiring before the other tiles finish loading when one tile fails (#8785) (by @johncarmack1984).innerHTML = …for the Popup close icon (#8795) (by @k-yle)updateDatagives it some, by updating geojson-vt to 6.3.0 (#8797) (by @johncarmack1984)v6.14.0Compare Source
✨ Features and improvements
new Map({ globalState: { ... }})andsetStyle({ globalState: ... })to provide an initial global state for the map style, overriding the global state defaults from the style (#7632) (by @hiddewie)🐞 Bug fixes
ScaleControlthrowing when its sample points miss the globe (#8720) (by @SatvikMishra08)removeFeatureStateremoves a property before feature state is set (#8715) (by @yeomin4242)circle-pitch-alignment: mapbeing drawn too large while the globe transitions to mercator (#8714) (by @heikki)map.resize(eventData, false)constraining the camera with thevertical-perspectiveprojection (#8695) (by @birkskyum)setStyleis called while the WebGL context is lost, since 6.12.0 (#8693) (by @birkskyum)flyTodropping theoffsetandaroundoptions underprefers-reduced-motion, so a reduced-motion fly lands at the same camera as the animated one (#8730) (by @maartenla)loadandidlenever firing when the last tile fails with a status other than 404 (#8733) (by @johncarmack1984)v6.13.0Compare Source
✨ Features and improvements
CustomLayerInterface.renderToTerrainTile,CustomLayerInterface.terrainTileRevisionandrenderTerrainHeightMapin the options ofprerender, so custom layers can drape what they draw over the terrain and place objects on it on the GPU (#8588) (by @birkskyum)🐞 Bug fixes
maplibre-gl-shared.mjs, and its default URL carries the version as avquery parameter.maplibre-gl-shared.mjsandmaplibre-gl-shared-dev.mjsare now empty files, kept so that existing copy steps don't fail; they are deprecated and will be removed in the next major version (#8621) (by @HarelM)globeDistanceOfLocationsPixelsreturningNaNwhen two copies of the same point have a dot product slightly above 1 (#8624)(by @Dimononon)v6.12.0Compare Source
✨ Features and improvements
zoomToUserAccuracyoption toGeolocateControlOptionsto allow control over map zoom adjustments in line with the Geolocation Position update accuracy, whiletrackUserLocationistrue(#7908, #8324, continues #7909) (by @timsluis)fill-extrusion-rounded-corner-distanceset, 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)absolutePaddingoption toMap#cameraForBoundsandMap#fitBoundsto treatpaddingas the map's persistent padding instead of adding it to the current one (#8480) (by @sargunv)🐞 Bug fixes
GeoJSONSourcestill sending its waiting updates to the worker after the source is removed (#8585) (by @clementperon)GeoJSONSourcememory growing until the page crashes whensetDatais called faster than the worker handles it (#8585) (by @clementperon)centerClampedToGroundis false (#8605) (by @johncarmack1984)jumpTo, and the setters that use it, pulling the center elevation onto the terrain whencenterClampedToGroundis false (#8566) (by @johncarmack1984)GeoJSONSource#updateDataleaving stale clusters on untouched tiles after clustering was turned on withsetClusterOptions(#8613) (by @clementperon)GeoJSONSource#setClusterOptionsclustering twice when called while new data is waiting to be sent (#8613) (by @clementperon)GeoJSONSourcedata set withsetDatabeing overwritten by the result of an earlier URL load orupdateData(#8613) (by @clementperon)fill-extrusion-vertical-gradientand rendering brighter than the other walls (#8604) (by @birkskyum)easeToandflyTopulling the center elevation onto the terrain whencenterClampedToGroundis false (#8566) (by @johncarmack1984)fill-outline-color, and the antialiased edge of fills, not being drawn when terrain is enabled (#4200) (by @clement-igonet)color-reliefwith acustomDEM encoding whoseredFactor,greenFactororblueFactoris 0, where every elevation stop packed to NaN and the color ramp collapsed (#6411) (by @drakeo338)queryRenderedFeaturesmissing fill-extrusions on globe once it renders as mercator (#8560) (by @birkskyum)line-offsetdistorting the line width around joins (#8570) (by @HarelM)maxzoom, where the tiles switched instantly (#8517) (by @cherenkov)webglcontextlostarrived (#8607) (by @rubenmarcus)v6.11.2Compare Source
✨ Features and improvements
🐞 Bug fixes
Map#once(type, layerId, listener)unsubscribing on the first event that misses the layer instead of the first event that hits it (#8499) (by @cherenkov)transformCameraUpdate(#8550) (by @birkskyum)easeToandflyToinstead of holding it and jumping when the animation ends (#8543) (by @johncarmack1984)fitBoundsandcameraForBoundsthrowing on the globe projection when the padding exceeds the viewport, instead of warning and returningundefinedas on mercator (#8538) (by @drakeo338)devicePixelRatio, where the canvas covered a different number of device pixels than its backing store held and the compositor rescaled it (#1590) (by @zdila)v6.11.1Compare Source
🐞 Bug fixes
easeTo/flyTo(#8471) (by @johncarmack1984)v6.11.0Compare Source
✨ Features and improvements
contextmenumap event on long press for touch devices (#373) (by @kirthi-b)global-statefrom the value they had when the state changes, where they snapped to the new value while holdingidlefor the transition duration (#8395) (by @avosa)promoteIdby keying symbols on their feature id as well as their label (#8470, continues #7665) (by @bradymadden97 and @johncarmack1984)Map#calculateAnchoredCameraOptionsto calculate camera options that place a geographic anchor at a screen position without moving the map (#8288) (by @xavierjs)symbol-height-offsetlayers when computing tile coverage (#8424) (by @clement-igonet)addProtocolhandler may return anImageBitmaporHTMLImageElementfor an image resource, so decoded pixels are not encoded and decoded again (#8515) (by @MannXo)🐞 Bug fixes
errorevent (#8018) (by @xavierjs)map.setSky()silently keeping the old sky and firing noerrorevent when the value included a-transitionkey (#8375) (by @Yasser-Ameur)v6.10.0Compare Source
✨ Features and improvements
Markeris behind terrain with a CPU ray walk over the DEM instead of a depth-buffer readback, removing a GPU stall per marker while a map with terrain moves (#8387) (by @johncarmack1984)🐞 Bug fixes
setStylecallingMap.setTerrainwith the wrongthis, which made a terrain change in a style diff throw (#8451) (by @HarelM)v6.9.1Compare Source
✨ Features and improvements
symbol-placement: linefeatures that share a label, which took time quadratic in the number of features that chain together (#8436) (by @cherenkov)fill-extrusion-rounded-corner-distancerounding distance to tile units once per tile instead of once per feature (#8435) (by @cherenkov)🐞 Bug fixes
fill-extrusion-vertical-gradientdisappearing over 3D terrain, where the gradient was computed from the extrusion's height above sea level instead of its own height (#8410) (by @ArcSolver)idleeven when nothing could animate and restarted transitions that were still running (#8376) (by @cherenkov)fill-extrusion-rounded-corner-distancerounding every feature twice, which over-rounded the corners and inflated the vertex count (#8429) (by @cherenkov)Map#projectreturning an incorrect on-screen point for a location behind the camera. It now returns a point outside the viewport, on the side through which the location left the screen, so DOM markers and popups are moved off-screen as expected. (#8292) (by @schickm)v6.9.0Compare Source
✨ Features and improvements
setRTLTextPluginandgetRTLTextPluginStatus(#8343) (by @HarelM)OffscreenCanvaswhere available, removing a main-thread stall of tens of milliseconds on GPU-accelerated browsers when a sprite loads (#8339) (by @cherenkov)🐞 Bug fixes
setStyle()throwing while terrain is still loading because an intermediate render tried to compile a terrain shader before the replacement style initialized its projection (#6824) (by @miakh)updateDataproperty removals throwing after geometry-only updates or retaining previously updated values (#8372) (by @jokrasno)undefinedas not given injumpTo,easeToandflyTo; they were coerced to NaN (#8373) (by @vlumi)Not implemented.error that broke panning and zooming when the projection was changed while the camera was moving, on maps with terrain enabled or atransformCameraUpdatecallback (#8351) (by @lazerg)400x300fallback size when the container is shown before the resize observer's first notification is delivered (#8277) (by @spliffone)MercatorTransformthrowing when it is resized to a zero width, and skip the matrix calculation of every projection while the transform has a zero width or height (#8374) (by @avosa)idlefrom firing for the transition duration after the map was otherwise done, and could ease the sky and the light on a different curve from the layers (#8348) (by @cherenkov)v6.8.0Compare Source
✨ Features and improvements
map.getStyleUrl(), which returns the URL the style was loaded from, ornullwhen the style was given as an object (#7109) (by @bradymadden97 and @giswqs)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)Markerpin once and clone it per marker, so creating many default markers takes roughly half the constructor time (#8340) (by @cherenkov)fill-coloras the foreground color (#7747) (by @bradymadden97 and @deniial00)maxCanvasSize, which previously lowered the rendered resolution silently (#8200) (by @str0kes)🐞 Bug fixes
dem dimension mismatcherror, and empty raster tiles render as transparent (#1551) (by @clement-igonet)Map#_setupContainer, avoiding a forced synchronous layout reflow on every map initialization (#8307) (by @lazerg)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)getCameraAltitude()returningNaNunderglobeandvertical-perspective, which disabled marker terrain occlusion and the camera terrain check; the altitude now follows the sphere (#6584) (by @bigmistqke and @patte)setTilesproducing stale tile URLs whenloadTileruns in the same frame (#8323) (by @johncarmack1984 and @nostrorom)symbol-height-offsetstays visible until it is behind the planet (#8316) (by @clement-igonet)v6.7.0Compare Source
✨ Features and improvements
font-facesproperty, withmap.setFontFacesandmap.getFontFacesand improve complex script languages such as Devanagari, Khmer, Burmese and Hebrew (#8237) (by @HarelM)font-faces(#8237) (by @HarelM)GPUInitializationErrorfrom theMapconstructor when the WebGL2 context cannot be created, instead of firing anerrorevent no listener can catch and returning a partially constructed map (#8066) (by @johncarmack1984)url. The source starts empty and makes no network request; callupdateImage({image})orupdateImage({url})later to show an image (#8167) (by @mondsichtung)Style#triggerSymbolPlacement, which re-places symbols when something the map cannot see for itself has moved them (#8208) (by @lucaswoj){validate: false}skip the style snapshot the style setters only build as error context, so adding layers one at a time no longer serializes the whole style on every call (#8259) (by @lazerg)🐞 Bug fixes
project()andqueryTerrainElevationdisagreeing with the rendered terrain surface when the elevation lookup sampled a different DEM zoom than the drawn mesh (#8212) (by @johncarmack1984)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.