@mapbox/mapbox-gl-style-spec 14.3.0 → 14.4.0-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/dist/index.es.js CHANGED
@@ -901,6 +901,11 @@ var source_geojson = {
901
901
  "default": 18,
902
902
  doc: "Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."
903
903
  },
904
+ minzoom: {
905
+ type: "number",
906
+ "default": 0,
907
+ doc: "Minimum zoom level at which to create vector tiles"
908
+ },
904
909
  attribution: {
905
910
  type: "string",
906
911
  doc: "Contains an attribution to be displayed when the map is shown to a user."
@@ -1131,10 +1136,9 @@ var layer = {
1131
1136
  doc: "Particle animation driven by textures such as wind maps.",
1132
1137
  "sdk-support": {
1133
1138
  "basic functionality": {
1134
- js: "0.10.0",
1135
- android: "2.0.1",
1136
- ios: "2.0.0",
1137
- macos: "0.1.0"
1139
+ js: "3.3.0",
1140
+ android: "11.4.0",
1141
+ ios: "11.4.0"
1138
1142
  }
1139
1143
  }
1140
1144
  },
@@ -1344,7 +1348,7 @@ var layout_model = {
1344
1348
  "model-id": {
1345
1349
  type: "string",
1346
1350
  "default": "",
1347
- doc: "Model to render.",
1351
+ doc: "Model to render. It can be either a string referencing an element to the models root property or an internal or external URL",
1348
1352
  "property-type": "data-driven",
1349
1353
  expression: {
1350
1354
  interpolated: false,
@@ -1563,6 +1567,9 @@ var layout_line = {
1563
1567
  },
1564
1568
  miter: {
1565
1569
  doc: "A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."
1570
+ },
1571
+ none: {
1572
+ doc: "Line segments are not joined together, each one creates a separate line. Useful in combination with line-pattern. Line-cap property is not respected. Can't be used with data-driven styling."
1566
1573
  }
1567
1574
  },
1568
1575
  "default": "miter",
@@ -1577,6 +1584,11 @@ var layout_line = {
1577
1584
  js: "0.40.0",
1578
1585
  android: "5.2.0",
1579
1586
  ios: "3.7.0"
1587
+ },
1588
+ "`none` value": {
1589
+ js: "3.4.0",
1590
+ android: "11.5.0",
1591
+ ios: "11.5.0"
1580
1592
  }
1581
1593
  },
1582
1594
  expression: {
@@ -4355,8 +4367,8 @@ var expression_name = {
4355
4367
  "sdk-support": {
4356
4368
  "basic functionality": {
4357
4369
  js: "3.3.0",
4358
- android: "",
4359
- ios: ""
4370
+ android: "11.4.0",
4371
+ ios: "11.4.0"
4360
4372
  }
4361
4373
  }
4362
4374
  },
@@ -6601,12 +6613,11 @@ var paint_symbol = {
6601
6613
  },
6602
6614
  "icon-color-saturation": {
6603
6615
  type: "number",
6604
- "default": 1,
6605
- minimum: 0,
6616
+ "default": 0,
6617
+ minimum: -1,
6606
6618
  maximum: 1,
6607
- transition: true,
6608
- units: "intensity",
6609
- doc: "Controls saturation level of the symbol icon. With the default value of 1 the icon color is preserved while with a value of 0 it is fully desaturated and looks black and white.",
6619
+ transition: false,
6620
+ doc: "Increase or reduce the saturation of the symbol icon.",
6610
6621
  "sdk-support": {
6611
6622
  "basic functionality": {
6612
6623
  js: "3.1.0",
@@ -6618,6 +6629,63 @@ var paint_symbol = {
6618
6629
  interpolated: false
6619
6630
  },
6620
6631
  "property-type": "data-constant"
6632
+ },
6633
+ "icon-color-contrast": {
6634
+ type: "number",
6635
+ "default": 0,
6636
+ minimum: -1,
6637
+ maximum: 1,
6638
+ transition: false,
6639
+ doc: "Increase or reduce the contrast of the symbol icon.",
6640
+ "sdk-support": {
6641
+ "basic functionality": {
6642
+ js: "3.5.0",
6643
+ android: "11.5.0",
6644
+ ios: "11.5.0"
6645
+ }
6646
+ },
6647
+ expression: {
6648
+ interpolated: false
6649
+ },
6650
+ "property-type": "data-constant"
6651
+ },
6652
+ "icon-color-brightness-min": {
6653
+ type: "number",
6654
+ doc: "Increase or reduce the brightness of the symbols. The value is the minimum brightness.",
6655
+ "default": 0,
6656
+ minimum: 0,
6657
+ maximum: 1,
6658
+ transition: false,
6659
+ "sdk-support": {
6660
+ "basic functionality": {
6661
+ js: "3.5.0",
6662
+ android: "11.5.0",
6663
+ ios: "11.5.0"
6664
+ }
6665
+ },
6666
+ expression: {
6667
+ interpolated: false
6668
+ },
6669
+ "property-type": "data-constant"
6670
+ },
6671
+ "icon-color-brightness-max": {
6672
+ type: "number",
6673
+ doc: "Increase or reduce the brightness of the symbols. The value is the maximum brightness.",
6674
+ "default": 1,
6675
+ minimum: 0,
6676
+ maximum: 1,
6677
+ transition: false,
6678
+ "sdk-support": {
6679
+ "basic functionality": {
6680
+ js: "3.5.0",
6681
+ android: "11.5.0",
6682
+ ios: "11.5.0"
6683
+ }
6684
+ },
6685
+ expression: {
6686
+ interpolated: false
6687
+ },
6688
+ "property-type": "data-constant"
6621
6689
  }
6622
6690
  };
6623
6691
  var paint_raster = {
@@ -8024,14 +8092,14 @@ var v8 = {
8024
8092
  doc: "Whether this layer is displayed.",
8025
8093
  "sdk-support": {
8026
8094
  "basic functionality": {
8027
- js: "0.10.0",
8028
- android: "2.0.1",
8029
- ios: "2.0.0"
8095
+ js: "3.3.0",
8096
+ android: "11.4.0",
8097
+ ios: "11.4.0"
8030
8098
  },
8031
8099
  "expressions support": {
8032
- js: "3.0.0",
8033
- android: "11.0.0",
8034
- ios: "11.0.0"
8100
+ js: "3.3.0",
8101
+ android: "11.4.0",
8102
+ ios: "11.4.0"
8035
8103
  }
8036
8104
  },
8037
8105
  expression: {
@@ -8713,12 +8781,12 @@ var v8 = {
8713
8781
  "property-type": "data-constant",
8714
8782
  transition: false,
8715
8783
  doc: "Displayed band of raster array source layer",
8716
- example: "band-name",
8784
+ example: "\"1713348000\"",
8717
8785
  "sdk-support": {
8718
8786
  "basic functionality": {
8719
- js: "",
8720
- android: "",
8721
- ios: ""
8787
+ js: "3.3.0",
8788
+ android: "11.4.0",
8789
+ ios: "11.4.0"
8722
8790
  }
8723
8791
  }
8724
8792
  },
@@ -8730,9 +8798,9 @@ var v8 = {
8730
8798
  transition: false,
8731
8799
  "sdk-support": {
8732
8800
  "basic functionality": {
8733
- js: "",
8734
- android: "",
8735
- ios: ""
8801
+ js: "3.3.0",
8802
+ android: "11.4.0",
8803
+ ios: "11.4.0"
8736
8804
  }
8737
8805
  },
8738
8806
  "property-type": "data-constant"
@@ -8743,9 +8811,9 @@ var v8 = {
8743
8811
  transition: false,
8744
8812
  "sdk-support": {
8745
8813
  "basic functionality": {
8746
- js: "",
8747
- android: "",
8748
- ios: ""
8814
+ js: "3.3.0",
8815
+ android: "11.4.0",
8816
+ ios: "11.4.0"
8749
8817
  },
8750
8818
  "data-driven styling": {
8751
8819
  }
@@ -8766,9 +8834,9 @@ var v8 = {
8766
8834
  transition: false,
8767
8835
  "sdk-support": {
8768
8836
  "basic functionality": {
8769
- js: "",
8770
- android: "",
8771
- ios: ""
8837
+ js: "3.3.0",
8838
+ android: "11.4.0",
8839
+ ios: "11.4.0"
8772
8840
  }
8773
8841
  },
8774
8842
  "property-type": "data-constant"
@@ -8782,9 +8850,9 @@ var v8 = {
8782
8850
  transition: true,
8783
8851
  "sdk-support": {
8784
8852
  "basic functionality": {
8785
- js: "",
8786
- android: "",
8787
- ios: ""
8853
+ js: "3.3.0",
8854
+ android: "11.4.0",
8855
+ ios: "11.4.0"
8788
8856
  }
8789
8857
  },
8790
8858
  expression: {
@@ -8804,9 +8872,9 @@ var v8 = {
8804
8872
  transition: true,
8805
8873
  "sdk-support": {
8806
8874
  "basic functionality": {
8807
- js: "",
8808
- android: "",
8809
- ios: ""
8875
+ js: "3.3.0",
8876
+ android: "11.4.0",
8877
+ ios: "11.4.0"
8810
8878
  }
8811
8879
  },
8812
8880
  expression: {
@@ -8826,9 +8894,9 @@ var v8 = {
8826
8894
  transition: false,
8827
8895
  "sdk-support": {
8828
8896
  "basic functionality": {
8829
- js: "",
8830
- android: "",
8831
- ios: ""
8897
+ js: "3.3.0",
8898
+ android: "11.4.0",
8899
+ ios: "11.4.0"
8832
8900
  }
8833
8901
  },
8834
8902
  "property-type": "data-constant"
@@ -19101,10 +19169,10 @@ function validatePromoteId({key, value}) {
19101
19169
 
19102
19170
  //
19103
19171
  // Allow any URL, use dummy base, if it's a relative URL
19104
- function isValidUrl(str) {
19172
+ function isValidUrl(str, allowRelativeUrls) {
19105
19173
  const isRelative = str.indexOf('://') === -1;
19106
19174
  try {
19107
- new URL(str, isRelative ? 'http://example.com' : undefined);
19175
+ new URL(str, isRelative && allowRelativeUrls ? 'http://example.com' : undefined);
19108
19176
  return true;
19109
19177
  } catch (_) {
19110
19178
  return false;
@@ -19121,7 +19189,7 @@ function validateModel(options) {
19121
19189
  errors = errors.concat([new ValidationError(options.key, url, `string expected, "${ type }" found`)]);
19122
19190
  return errors;
19123
19191
  }
19124
- if (!isValidUrl(url)) {
19192
+ if (!isValidUrl(url, true)) {
19125
19193
  errors = errors.concat([new ValidationError(options.key, url, `invalid url "${ url }"`)]);
19126
19194
  }
19127
19195
  return errors;