@mapbox/mapbox-gl-style-spec 14.9.0-beta.1 → 14.9.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/dist/index.cjs CHANGED
@@ -1546,8 +1546,7 @@
1546
1546
  expression: {
1547
1547
  interpolated: false
1548
1548
  },
1549
- "property-type": "data-constant",
1550
- experimental: true
1549
+ "property-type": "data-constant"
1551
1550
  },
1552
1551
  "clip-layer-scope": {
1553
1552
  type: "array",
@@ -1565,8 +1564,7 @@
1565
1564
  expression: {
1566
1565
  interpolated: false
1567
1566
  },
1568
- "property-type": "data-constant",
1569
- experimental: true
1567
+ "property-type": "data-constant"
1570
1568
  }
1571
1569
  };
1572
1570
  var layout_fill = {
@@ -4078,7 +4076,7 @@
4078
4076
  }
4079
4077
  },
4080
4078
  image: {
4081
- doc: "Returns a [`ResolvedImage`](/mapbox-gl-js/style-spec/types/#resolvedimage) for use in [`icon-image`](/mapbox-gl-js/style-spec/layers/#layout-symbol-icon-image), `*-pattern` entries, and as a section in the [`'format'`](#types-format) expression. A [`'coalesce'`](#coalesce) expression containing `image` expressions will evaluate to the first listed image that is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `'image'` argument. To implement crossfading between two images within a symbol layer using the [`icon-image-cross-fade`](/mapbox-gl-js/style-spec/layers/#paint-symbol-icon-image-cross-fade) attribute, include a second image as the second argument in the `'image'` expression.",
4079
+ doc: "Returns a [`ResolvedImage`](/style-spec/reference/types/#resolvedimage) for use in [`icon-image`](/style-spec/reference/layers/#layout-symbol-icon-image), `*-pattern` entries, and as a section in the [`'format'`](#types-format) expression.\n\nA [`'coalesce'`](#coalesce) expression containing `image` expressions will evaluate to the first listed image that is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `'image'` argument.\n\nEvery image name can be followed by an optional [`ImageOptions`](/style-spec/reference/types/#imageoptions) object, which will be used for vector images only.\n\nTo implement crossfading between two images within a symbol layer using the [`icon-image-cross-fade`](/style-spec/reference/layers/#paint-symbol-icon-image-cross-fade) attribute, include a second image as the second argument in the `'image'` expression.",
4082
4080
  group: "Types",
4083
4081
  "sdk-support": {
4084
4082
  "basic functionality": {
@@ -5074,7 +5072,19 @@
5074
5072
  density: {
5075
5073
  type: "number",
5076
5074
  "property-type": "data-constant",
5077
- "default": 1,
5075
+ "default": [
5076
+ "interpolate",
5077
+ [
5078
+ "linear"
5079
+ ],
5080
+ [
5081
+ "zoom"
5082
+ ],
5083
+ 11,
5084
+ 0,
5085
+ 13,
5086
+ 0.85
5087
+ ],
5078
5088
  minimum: 0,
5079
5089
  maximum: 1,
5080
5090
  experimental: true,
@@ -5144,7 +5154,7 @@
5144
5154
  opacity: {
5145
5155
  type: "number",
5146
5156
  "property-type": "data-constant",
5147
- "default": 0.9,
5157
+ "default": 1,
5148
5158
  minimum: 0,
5149
5159
  maximum: 1,
5150
5160
  experimental: true,
@@ -5168,7 +5178,19 @@
5168
5178
  vignette: {
5169
5179
  type: "number",
5170
5180
  "property-type": "data-constant",
5171
- "default": 0.3,
5181
+ "default": [
5182
+ "interpolate",
5183
+ [
5184
+ "linear"
5185
+ ],
5186
+ [
5187
+ "zoom"
5188
+ ],
5189
+ 11,
5190
+ 0,
5191
+ 13,
5192
+ 0.3
5193
+ ],
5172
5194
  minimum: 0,
5173
5195
  maximum: 1,
5174
5196
  experimental: true,
@@ -5214,7 +5236,7 @@
5214
5236
  "center-thinning": {
5215
5237
  type: "number",
5216
5238
  "property-type": "data-constant",
5217
- "default": 1,
5239
+ "default": 0.4,
5218
5240
  minimum: 0,
5219
5241
  maximum: 1,
5220
5242
  experimental: true,
@@ -5239,7 +5261,7 @@
5239
5261
  type: "array",
5240
5262
  "default": [
5241
5263
  0,
5242
- 90
5264
+ 50
5243
5265
  ],
5244
5266
  minimum: 0,
5245
5267
  maximum: 360,
@@ -5271,7 +5293,7 @@
5271
5293
  "flake-size": {
5272
5294
  type: "number",
5273
5295
  "property-type": "data-constant",
5274
- "default": 1,
5296
+ "default": 0.71,
5275
5297
  minimum: 0,
5276
5298
  maximum: 5,
5277
5299
  experimental: true,
@@ -5297,7 +5319,19 @@
5297
5319
  density: {
5298
5320
  type: "number",
5299
5321
  "property-type": "data-constant",
5300
- "default": 1,
5322
+ "default": [
5323
+ "interpolate",
5324
+ [
5325
+ "linear"
5326
+ ],
5327
+ [
5328
+ "zoom"
5329
+ ],
5330
+ 11,
5331
+ 0,
5332
+ 13,
5333
+ 0.5
5334
+ ],
5301
5335
  minimum: 0,
5302
5336
  maximum: 1,
5303
5337
  experimental: true,
@@ -5345,7 +5379,20 @@
5345
5379
  color: {
5346
5380
  type: "color",
5347
5381
  "property-type": "data-constant",
5348
- "default": "#919191",
5382
+ "default": [
5383
+ "interpolate",
5384
+ [
5385
+ "linear"
5386
+ ],
5387
+ [
5388
+ "measure-light",
5389
+ "brightness"
5390
+ ],
5391
+ 0,
5392
+ "#03113d",
5393
+ 0.3,
5394
+ "#a8adbc"
5395
+ ],
5349
5396
  experimental: true,
5350
5397
  expression: {
5351
5398
  interpolated: true,
@@ -5367,7 +5414,20 @@
5367
5414
  opacity: {
5368
5415
  type: "number",
5369
5416
  "property-type": "data-constant",
5370
- "default": 0.19,
5417
+ "default": [
5418
+ "interpolate",
5419
+ [
5420
+ "linear"
5421
+ ],
5422
+ [
5423
+ "measure-light",
5424
+ "brightness"
5425
+ ],
5426
+ 0,
5427
+ 0.88,
5428
+ 1,
5429
+ 0.7
5430
+ ],
5371
5431
  minimum: 0,
5372
5432
  maximum: 1,
5373
5433
  experimental: true,
@@ -5391,7 +5451,19 @@
5391
5451
  vignette: {
5392
5452
  type: "number",
5393
5453
  "property-type": "data-constant",
5394
- "default": 0.3,
5454
+ "default": [
5455
+ "interpolate",
5456
+ [
5457
+ "linear"
5458
+ ],
5459
+ [
5460
+ "zoom"
5461
+ ],
5462
+ 11,
5463
+ 0,
5464
+ 13,
5465
+ 1
5466
+ ],
5395
5467
  minimum: 0,
5396
5468
  maximum: 1,
5397
5469
  experimental: true,
@@ -5415,7 +5487,20 @@
5415
5487
  "vignette-color": {
5416
5488
  type: "color",
5417
5489
  "property-type": "data-constant",
5418
- "default": "#ffffff",
5490
+ "default": [
5491
+ "interpolate",
5492
+ [
5493
+ "linear"
5494
+ ],
5495
+ [
5496
+ "measure-light",
5497
+ "brightness"
5498
+ ],
5499
+ 0,
5500
+ "#001736",
5501
+ 0.3,
5502
+ "#464646"
5503
+ ],
5419
5504
  experimental: true,
5420
5505
  expression: {
5421
5506
  interpolated: true,
@@ -5437,7 +5522,7 @@
5437
5522
  "center-thinning": {
5438
5523
  type: "number",
5439
5524
  "property-type": "data-constant",
5440
- "default": 1,
5525
+ "default": 0.57,
5441
5526
  minimum: 0,
5442
5527
  maximum: 1,
5443
5528
  experimental: true,
@@ -5494,11 +5579,11 @@
5494
5579
  "droplet-size": {
5495
5580
  type: "array",
5496
5581
  "default": [
5497
- 1,
5498
- 10
5582
+ 2.6,
5583
+ 18.2
5499
5584
  ],
5500
5585
  minimum: 0,
5501
- maximum: 20,
5586
+ maximum: 50,
5502
5587
  length: 2,
5503
5588
  value: "number",
5504
5589
  "property-type": "data-constant",
@@ -5527,7 +5612,7 @@
5527
5612
  "distortion-strength": {
5528
5613
  type: "number",
5529
5614
  "property-type": "data-constant",
5530
- "default": 0.5,
5615
+ "default": 0.7,
5531
5616
  minimum: 0,
5532
5617
  maximum: 1,
5533
5618
  experimental: true,
@@ -8170,9 +8255,9 @@
8170
8255
  ],
8171
8256
  "sdk-support": {
8172
8257
  "basic functionality": {
8173
- js: "3.0.0",
8174
- android: "11.0.0",
8175
- ios: "11.0.0"
8258
+ js: "3.1.0",
8259
+ android: "11.1.0",
8260
+ ios: "11.1.0"
8176
8261
  }
8177
8262
  },
8178
8263
  expression: {
@@ -12690,7 +12775,7 @@
12690
12775
  }
12691
12776
 
12692
12777
  function isImageOptions(value) {
12693
- if (typeof value !== 'string' && !isExpression(value)) {
12778
+ if (value !== null && typeof value === 'object') {
12694
12779
  return true;
12695
12780
  }
12696
12781
  return false;