@mapbox/mapbox-gl-style-spec 13.22.0 → 13.23.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,22 @@
1
- # 13.22.0-beta.1
1
+ # 13.23.1-beta.1
2
+
3
+ ### ✨ Features and improvements
4
+
5
+ * Improve `coalesce` expressions to return a `ResolvedImage` when images are missing. ([#11371](https://github.com/mapbox/mapbox-gl-js/pull/11371))
6
+
7
+ # 13.23.0
8
+
9
+ ### ✨ Features and improvements
10
+
11
+ * Add a `projection` root property that allows a non-mercator projection to be set as a style's default projection. ([#11124](https://github.com/mapbox/mapbox-gl-js/pull/11124))
12
+ * Add support for using `["pitch"]` and `["distance-from-camera"]` expressions within the `filter` of a symbol layer. ([#10795](https://github.com/mapbox/mapbox-gl-js/pull/10795))
13
+
14
+ # 13.22.0
15
+
2
16
  ### ✨ Features and improvements
3
17
 
4
18
  * Added `protected` field to mapbox-api-supported validation. ([#10968](https://github.com/mapbox/mapbox-gl-js/pull/10968))
19
+
5
20
  # 13.21.0
6
21
 
7
22
  ### ✨ Features and improvements
package/diff.js CHANGED
@@ -106,8 +106,12 @@ const operations = {
106
106
  /*
107
107
  * { command: 'setFog', args: [fogProperties] }
108
108
  */
109
- setFog: 'setFog'
109
+ setFog: 'setFog',
110
110
 
111
+ /*
112
+ * { command: 'setProjection', args: [projectionProperties] }
113
+ */
114
+ setProjection: 'setProjection'
111
115
  };
112
116
 
113
117
  function addSource(sourceId, after, commands) {
@@ -363,6 +367,9 @@ function diffStyles(before, after) {
363
367
  if (!isEqual(before.fog, after.fog)) {
364
368
  commands.push({command: operations.setFog, args: [after.fog]});
365
369
  }
370
+ if (!isEqual(before.projection, after.projection)) {
371
+ commands.push({command: operations.setProjection, args: [after.projection]});
372
+ }
366
373
 
367
374
  // Handle changes to `sources`
368
375
  // If a source is to be removed, we also--before the removeSource