# MapLibre GL JS v6.0.0-22 - Product: MapLibre GL JS (https://whatsnew.fyi/product/maplibre-gl-js) - Vendor: MapLibre - Date: 2026-07-15 - Version: v6.0.0-22 - Original notes: https://github.com/maplibre/maplibre-gl-js/releases/tag/v6.0.0-22 - Permalink: https://whatsnew.fyi/product/maplibre-gl-js/releases/v6.0.0-22 - Labels: Pre-release What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Validate the terrain passed to map.setTerrain - **changed** — Improve runtime error warnings to point at the offending style location instead of just logging the bare error message - **changed** — Interpolate the light position in spherical coordinates instead of cartesian ones so that a transition keeps its radial distance - **fixed** — Log style validation warnings instead of treating them as errors so that a filter mixing legacy and expression syntax no longer aborts the style load and blanks the map - **fixed** — Validate raster-dem sources passed to map.addSource and stop a source type the style spec has no schema for from failing the whole style ###### ✨ Features and improvements - Validate the terrain passed to `map.setTerrain`, which was previously applied unchecked ([#7941](https://github.com/maplibre/maplibre-gl-js/pull/7941)) (by [@HarelM](https://github.com/HarelM)) - Improve runtime error warnings to point at the offending style location (e.g. `layers[3].paint.line-color`, `layers[3].filter`) instead of just logging the bare error message ([#7869](https://github.com/maplibre/maplibre-gl-js/pull/7869)) (by [@CommanderStorm](https://github.com/CommanderStorm)) - ⚠️ Interpolate the light position in spherical coordinates instead of cartesian ones, so that a transition keeps its radial distance. ([#7919](https://github.com/maplibre/maplibre-gl-js/pull/7919)) (by [@HarelM](https://github.com/HarelM)) ###### 🐞 Bug fixes - Log style validation warnings instead of treating them as errors, so that a filter mixing legacy and expression syntax no longer aborts the style load and blanks the map ([#7941](https://github.com/maplibre/maplibre-style-spec/pull/7941)) (by [@HarelM](https://github.com/HarelM)) - Validate `raster-dem` sources passed to `map.addSource`, which were previously skipped. Stop a source type the style spec has no schema for, such as one registered with `addSourceType`, from failing the whole style. Previously only `canvas` was let through ([#7941](https://github.com/maplibre/maplibre-gl-js/pull/7941)) (by [@HarelM](https://github.com/HarelM))