✨ Features and improvements
- Validate the terrain passed to
map.setTerrain, which was previously applied unchecked (#7941) (by @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) (by @CommanderStorm) - ⚠️ Interpolate the light position in spherical coordinates instead of cartesian ones, so that a transition keeps its radial distance. (#7919) (by @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) (by @HarelM)
- Validate
raster-demsources passed tomap.addSource, which were previously skipped. Stop a source type the style spec has no schema for, such as one registered withaddSourceType, from failing the whole style. Previously onlycanvaswas let through (#7941) (by @HarelM)