@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.cjs CHANGED
@@ -907,6 +907,11 @@
907
907
  "default": 18,
908
908
  doc: "Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."
909
909
  },
910
+ minzoom: {
911
+ type: "number",
912
+ "default": 0,
913
+ doc: "Minimum zoom level at which to create vector tiles"
914
+ },
910
915
  attribution: {
911
916
  type: "string",
912
917
  doc: "Contains an attribution to be displayed when the map is shown to a user."
@@ -1137,10 +1142,9 @@
1137
1142
  doc: "Particle animation driven by textures such as wind maps.",
1138
1143
  "sdk-support": {
1139
1144
  "basic functionality": {
1140
- js: "0.10.0",
1141
- android: "2.0.1",
1142
- ios: "2.0.0",
1143
- macos: "0.1.0"
1145
+ js: "3.3.0",
1146
+ android: "11.4.0",
1147
+ ios: "11.4.0"
1144
1148
  }
1145
1149
  }
1146
1150
  },
@@ -1350,7 +1354,7 @@
1350
1354
  "model-id": {
1351
1355
  type: "string",
1352
1356
  "default": "",
1353
- doc: "Model to render.",
1357
+ doc: "Model to render. It can be either a string referencing an element to the models root property or an internal or external URL",
1354
1358
  "property-type": "data-driven",
1355
1359
  expression: {
1356
1360
  interpolated: false,
@@ -1569,6 +1573,9 @@
1569
1573
  },
1570
1574
  miter: {
1571
1575
  doc: "A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."
1576
+ },
1577
+ none: {
1578
+ 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."
1572
1579
  }
1573
1580
  },
1574
1581
  "default": "miter",
@@ -1583,6 +1590,11 @@
1583
1590
  js: "0.40.0",
1584
1591
  android: "5.2.0",
1585
1592
  ios: "3.7.0"
1593
+ },
1594
+ "`none` value": {
1595
+ js: "3.4.0",
1596
+ android: "11.5.0",
1597
+ ios: "11.5.0"
1586
1598
  }
1587
1599
  },
1588
1600
  expression: {
@@ -4361,8 +4373,8 @@
4361
4373
  "sdk-support": {
4362
4374
  "basic functionality": {
4363
4375
  js: "3.3.0",
4364
- android: "",
4365
- ios: ""
4376
+ android: "11.4.0",
4377
+ ios: "11.4.0"
4366
4378
  }
4367
4379
  }
4368
4380
  },
@@ -6607,12 +6619,11 @@
6607
6619
  },
6608
6620
  "icon-color-saturation": {
6609
6621
  type: "number",
6610
- "default": 1,
6611
- minimum: 0,
6622
+ "default": 0,
6623
+ minimum: -1,
6612
6624
  maximum: 1,
6613
- transition: true,
6614
- units: "intensity",
6615
- 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.",
6625
+ transition: false,
6626
+ doc: "Increase or reduce the saturation of the symbol icon.",
6616
6627
  "sdk-support": {
6617
6628
  "basic functionality": {
6618
6629
  js: "3.1.0",
@@ -6624,6 +6635,63 @@
6624
6635
  interpolated: false
6625
6636
  },
6626
6637
  "property-type": "data-constant"
6638
+ },
6639
+ "icon-color-contrast": {
6640
+ type: "number",
6641
+ "default": 0,
6642
+ minimum: -1,
6643
+ maximum: 1,
6644
+ transition: false,
6645
+ doc: "Increase or reduce the contrast of the symbol icon.",
6646
+ "sdk-support": {
6647
+ "basic functionality": {
6648
+ js: "3.5.0",
6649
+ android: "11.5.0",
6650
+ ios: "11.5.0"
6651
+ }
6652
+ },
6653
+ expression: {
6654
+ interpolated: false
6655
+ },
6656
+ "property-type": "data-constant"
6657
+ },
6658
+ "icon-color-brightness-min": {
6659
+ type: "number",
6660
+ doc: "Increase or reduce the brightness of the symbols. The value is the minimum brightness.",
6661
+ "default": 0,
6662
+ minimum: 0,
6663
+ maximum: 1,
6664
+ transition: false,
6665
+ "sdk-support": {
6666
+ "basic functionality": {
6667
+ js: "3.5.0",
6668
+ android: "11.5.0",
6669
+ ios: "11.5.0"
6670
+ }
6671
+ },
6672
+ expression: {
6673
+ interpolated: false
6674
+ },
6675
+ "property-type": "data-constant"
6676
+ },
6677
+ "icon-color-brightness-max": {
6678
+ type: "number",
6679
+ doc: "Increase or reduce the brightness of the symbols. The value is the maximum brightness.",
6680
+ "default": 1,
6681
+ minimum: 0,
6682
+ maximum: 1,
6683
+ transition: false,
6684
+ "sdk-support": {
6685
+ "basic functionality": {
6686
+ js: "3.5.0",
6687
+ android: "11.5.0",
6688
+ ios: "11.5.0"
6689
+ }
6690
+ },
6691
+ expression: {
6692
+ interpolated: false
6693
+ },
6694
+ "property-type": "data-constant"
6627
6695
  }
6628
6696
  };
6629
6697
  var paint_raster = {
@@ -8030,14 +8098,14 @@
8030
8098
  doc: "Whether this layer is displayed.",
8031
8099
  "sdk-support": {
8032
8100
  "basic functionality": {
8033
- js: "0.10.0",
8034
- android: "2.0.1",
8035
- ios: "2.0.0"
8101
+ js: "3.3.0",
8102
+ android: "11.4.0",
8103
+ ios: "11.4.0"
8036
8104
  },
8037
8105
  "expressions support": {
8038
- js: "3.0.0",
8039
- android: "11.0.0",
8040
- ios: "11.0.0"
8106
+ js: "3.3.0",
8107
+ android: "11.4.0",
8108
+ ios: "11.4.0"
8041
8109
  }
8042
8110
  },
8043
8111
  expression: {
@@ -8719,12 +8787,12 @@
8719
8787
  "property-type": "data-constant",
8720
8788
  transition: false,
8721
8789
  doc: "Displayed band of raster array source layer",
8722
- example: "band-name",
8790
+ example: "\"1713348000\"",
8723
8791
  "sdk-support": {
8724
8792
  "basic functionality": {
8725
- js: "",
8726
- android: "",
8727
- ios: ""
8793
+ js: "3.3.0",
8794
+ android: "11.4.0",
8795
+ ios: "11.4.0"
8728
8796
  }
8729
8797
  }
8730
8798
  },
@@ -8736,9 +8804,9 @@
8736
8804
  transition: false,
8737
8805
  "sdk-support": {
8738
8806
  "basic functionality": {
8739
- js: "",
8740
- android: "",
8741
- ios: ""
8807
+ js: "3.3.0",
8808
+ android: "11.4.0",
8809
+ ios: "11.4.0"
8742
8810
  }
8743
8811
  },
8744
8812
  "property-type": "data-constant"
@@ -8749,9 +8817,9 @@
8749
8817
  transition: false,
8750
8818
  "sdk-support": {
8751
8819
  "basic functionality": {
8752
- js: "",
8753
- android: "",
8754
- ios: ""
8820
+ js: "3.3.0",
8821
+ android: "11.4.0",
8822
+ ios: "11.4.0"
8755
8823
  },
8756
8824
  "data-driven styling": {
8757
8825
  }
@@ -8772,9 +8840,9 @@
8772
8840
  transition: false,
8773
8841
  "sdk-support": {
8774
8842
  "basic functionality": {
8775
- js: "",
8776
- android: "",
8777
- ios: ""
8843
+ js: "3.3.0",
8844
+ android: "11.4.0",
8845
+ ios: "11.4.0"
8778
8846
  }
8779
8847
  },
8780
8848
  "property-type": "data-constant"
@@ -8788,9 +8856,9 @@
8788
8856
  transition: true,
8789
8857
  "sdk-support": {
8790
8858
  "basic functionality": {
8791
- js: "",
8792
- android: "",
8793
- ios: ""
8859
+ js: "3.3.0",
8860
+ android: "11.4.0",
8861
+ ios: "11.4.0"
8794
8862
  }
8795
8863
  },
8796
8864
  expression: {
@@ -8810,9 +8878,9 @@
8810
8878
  transition: true,
8811
8879
  "sdk-support": {
8812
8880
  "basic functionality": {
8813
- js: "",
8814
- android: "",
8815
- ios: ""
8881
+ js: "3.3.0",
8882
+ android: "11.4.0",
8883
+ ios: "11.4.0"
8816
8884
  }
8817
8885
  },
8818
8886
  expression: {
@@ -8832,9 +8900,9 @@
8832
8900
  transition: false,
8833
8901
  "sdk-support": {
8834
8902
  "basic functionality": {
8835
- js: "",
8836
- android: "",
8837
- ios: ""
8903
+ js: "3.3.0",
8904
+ android: "11.4.0",
8905
+ ios: "11.4.0"
8838
8906
  }
8839
8907
  },
8840
8908
  "property-type": "data-constant"
@@ -19107,10 +19175,10 @@ ${ JSON.stringify(filterExp, null, 2) }
19107
19175
 
19108
19176
  //
19109
19177
  // Allow any URL, use dummy base, if it's a relative URL
19110
- function isValidUrl(str) {
19178
+ function isValidUrl(str, allowRelativeUrls) {
19111
19179
  const isRelative = str.indexOf('://') === -1;
19112
19180
  try {
19113
- new URL(str, isRelative ? 'http://example.com' : undefined);
19181
+ new URL(str, isRelative && allowRelativeUrls ? 'http://example.com' : undefined);
19114
19182
  return true;
19115
19183
  } catch (_) {
19116
19184
  return false;
@@ -19127,7 +19195,7 @@ ${ JSON.stringify(filterExp, null, 2) }
19127
19195
  errors = errors.concat([new ValidationError(options.key, url, `string expected, "${ type }" found`)]);
19128
19196
  return errors;
19129
19197
  }
19130
- if (!isValidUrl(url)) {
19198
+ if (!isValidUrl(url, true)) {
19131
19199
  errors = errors.concat([new ValidationError(options.key, url, `invalid url "${ url }"`)]);
19132
19200
  }
19133
19201
  return errors;