@mapbox/mapbox-gl-style-spec 14.8.0 → 14.9.0

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/diff.ts CHANGED
@@ -125,6 +125,16 @@ export const operations: {
125
125
  */
126
126
  setFog: 'setFog',
127
127
 
128
+ /*
129
+ * { command: 'setSnow', args: [snowProperties] }
130
+ */
131
+ setSnow: 'setSnow',
132
+
133
+ /*
134
+ * { command: 'setRain', args: [rainProperties] }
135
+ */
136
+ setRain: 'setRain',
137
+
128
138
  /*
129
139
  * { command: 'setCamera', args: [cameraProperties] }
130
140
  */
@@ -495,6 +505,12 @@ export default function diffStyles(before: StyleSpecification, after: StyleSpeci
495
505
  if (!isEqual(before.fog, after.fog)) {
496
506
  commands.push({command: operations.setFog, args: [after.fog]});
497
507
  }
508
+ if (!isEqual(before.snow, after.snow)) {
509
+ commands.push({command: operations.setSnow, args: [after.snow]});
510
+ }
511
+ if (!isEqual(before.rain, after.rain)) {
512
+ commands.push({command: operations.setRain, args: [after.rain]});
513
+ }
498
514
  if (!isEqual(before.projection, after.projection)) {
499
515
  commands.push({command: operations.setProjection, args: [after.projection]});
500
516
  }