@mapbox/mapbox-gl-style-spec 14.3.0-beta.1 → 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 +112 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +112 -48
- package/dist/index.es.js.map +1 -1
- package/expression/expression.js +1 -0
- package/flow-typed/gl-matrix.js +1 -1
- package/flow-typed/tracked_parameters_proxy.js +82 -0
- package/package.json +1 -1
- package/reference/v8.json +109 -45
- package/types.js +5 -1
- package/validate/validate_model.js +3 -3
- package/flow-typed/grid-index.js +0 -13
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: "
|
|
1141
|
-
android: "
|
|
1142
|
-
ios: "
|
|
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":
|
|
6611
|
-
minimum:
|
|
6622
|
+
"default": 0,
|
|
6623
|
+
minimum: -1,
|
|
6612
6624
|
maximum: 1,
|
|
6613
|
-
transition:
|
|
6614
|
-
|
|
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 = {
|
|
@@ -6708,10 +6776,6 @@
|
|
|
6708
6776
|
},
|
|
6709
6777
|
"raster-color-range": {
|
|
6710
6778
|
type: "array",
|
|
6711
|
-
"default": [
|
|
6712
|
-
0,
|
|
6713
|
-
1
|
|
6714
|
-
],
|
|
6715
6779
|
length: 2,
|
|
6716
6780
|
value: "number",
|
|
6717
6781
|
"property-type": "data-constant",
|
|
@@ -6725,7 +6789,7 @@
|
|
|
6725
6789
|
"zoom"
|
|
6726
6790
|
]
|
|
6727
6791
|
},
|
|
6728
|
-
doc: "When `raster-color` is active, specifies the range over which `raster-color` is tabulated. Units correspond to the computed raster value via `raster-color-mix`.",
|
|
6792
|
+
doc: "When `raster-color` is active, specifies the range over which `raster-color` is tabulated. Units correspond to the computed raster value via `raster-color-mix`. For `rasterarray` sources, if `raster-color-range` is unspecified, the source's stated data range is used.",
|
|
6729
6793
|
example: [
|
|
6730
6794
|
0.5,
|
|
6731
6795
|
10
|
|
@@ -8034,14 +8098,14 @@
|
|
|
8034
8098
|
doc: "Whether this layer is displayed.",
|
|
8035
8099
|
"sdk-support": {
|
|
8036
8100
|
"basic functionality": {
|
|
8037
|
-
js: "
|
|
8038
|
-
android: "
|
|
8039
|
-
ios: "
|
|
8101
|
+
js: "3.3.0",
|
|
8102
|
+
android: "11.4.0",
|
|
8103
|
+
ios: "11.4.0"
|
|
8040
8104
|
},
|
|
8041
8105
|
"expressions support": {
|
|
8042
|
-
js: "3.
|
|
8043
|
-
android: "11.
|
|
8044
|
-
ios: "11.
|
|
8106
|
+
js: "3.3.0",
|
|
8107
|
+
android: "11.4.0",
|
|
8108
|
+
ios: "11.4.0"
|
|
8045
8109
|
}
|
|
8046
8110
|
},
|
|
8047
8111
|
expression: {
|
|
@@ -8723,12 +8787,12 @@
|
|
|
8723
8787
|
"property-type": "data-constant",
|
|
8724
8788
|
transition: false,
|
|
8725
8789
|
doc: "Displayed band of raster array source layer",
|
|
8726
|
-
example: "
|
|
8790
|
+
example: "\"1713348000\"",
|
|
8727
8791
|
"sdk-support": {
|
|
8728
8792
|
"basic functionality": {
|
|
8729
|
-
js: "",
|
|
8730
|
-
android: "",
|
|
8731
|
-
ios: ""
|
|
8793
|
+
js: "3.3.0",
|
|
8794
|
+
android: "11.4.0",
|
|
8795
|
+
ios: "11.4.0"
|
|
8732
8796
|
}
|
|
8733
8797
|
}
|
|
8734
8798
|
},
|
|
@@ -8740,9 +8804,9 @@
|
|
|
8740
8804
|
transition: false,
|
|
8741
8805
|
"sdk-support": {
|
|
8742
8806
|
"basic functionality": {
|
|
8743
|
-
js: "",
|
|
8744
|
-
android: "",
|
|
8745
|
-
ios: ""
|
|
8807
|
+
js: "3.3.0",
|
|
8808
|
+
android: "11.4.0",
|
|
8809
|
+
ios: "11.4.0"
|
|
8746
8810
|
}
|
|
8747
8811
|
},
|
|
8748
8812
|
"property-type": "data-constant"
|
|
@@ -8753,9 +8817,9 @@
|
|
|
8753
8817
|
transition: false,
|
|
8754
8818
|
"sdk-support": {
|
|
8755
8819
|
"basic functionality": {
|
|
8756
|
-
js: "",
|
|
8757
|
-
android: "",
|
|
8758
|
-
ios: ""
|
|
8820
|
+
js: "3.3.0",
|
|
8821
|
+
android: "11.4.0",
|
|
8822
|
+
ios: "11.4.0"
|
|
8759
8823
|
},
|
|
8760
8824
|
"data-driven styling": {
|
|
8761
8825
|
}
|
|
@@ -8776,9 +8840,9 @@
|
|
|
8776
8840
|
transition: false,
|
|
8777
8841
|
"sdk-support": {
|
|
8778
8842
|
"basic functionality": {
|
|
8779
|
-
js: "",
|
|
8780
|
-
android: "",
|
|
8781
|
-
ios: ""
|
|
8843
|
+
js: "3.3.0",
|
|
8844
|
+
android: "11.4.0",
|
|
8845
|
+
ios: "11.4.0"
|
|
8782
8846
|
}
|
|
8783
8847
|
},
|
|
8784
8848
|
"property-type": "data-constant"
|
|
@@ -8792,9 +8856,9 @@
|
|
|
8792
8856
|
transition: true,
|
|
8793
8857
|
"sdk-support": {
|
|
8794
8858
|
"basic functionality": {
|
|
8795
|
-
js: "",
|
|
8796
|
-
android: "",
|
|
8797
|
-
ios: ""
|
|
8859
|
+
js: "3.3.0",
|
|
8860
|
+
android: "11.4.0",
|
|
8861
|
+
ios: "11.4.0"
|
|
8798
8862
|
}
|
|
8799
8863
|
},
|
|
8800
8864
|
expression: {
|
|
@@ -8814,9 +8878,9 @@
|
|
|
8814
8878
|
transition: true,
|
|
8815
8879
|
"sdk-support": {
|
|
8816
8880
|
"basic functionality": {
|
|
8817
|
-
js: "",
|
|
8818
|
-
android: "",
|
|
8819
|
-
ios: ""
|
|
8881
|
+
js: "3.3.0",
|
|
8882
|
+
android: "11.4.0",
|
|
8883
|
+
ios: "11.4.0"
|
|
8820
8884
|
}
|
|
8821
8885
|
},
|
|
8822
8886
|
expression: {
|
|
@@ -8836,9 +8900,9 @@
|
|
|
8836
8900
|
transition: false,
|
|
8837
8901
|
"sdk-support": {
|
|
8838
8902
|
"basic functionality": {
|
|
8839
|
-
js: "",
|
|
8840
|
-
android: "",
|
|
8841
|
-
ios: ""
|
|
8903
|
+
js: "3.3.0",
|
|
8904
|
+
android: "11.4.0",
|
|
8905
|
+
ios: "11.4.0"
|
|
8842
8906
|
}
|
|
8843
8907
|
},
|
|
8844
8908
|
"property-type": "data-constant"
|
|
@@ -19111,10 +19175,10 @@ ${ JSON.stringify(filterExp, null, 2) }
|
|
|
19111
19175
|
|
|
19112
19176
|
//
|
|
19113
19177
|
// Allow any URL, use dummy base, if it's a relative URL
|
|
19114
|
-
function isValidUrl(str) {
|
|
19178
|
+
function isValidUrl(str, allowRelativeUrls) {
|
|
19115
19179
|
const isRelative = str.indexOf('://') === -1;
|
|
19116
19180
|
try {
|
|
19117
|
-
new URL(str, isRelative ? 'http://example.com' : undefined);
|
|
19181
|
+
new URL(str, isRelative && allowRelativeUrls ? 'http://example.com' : undefined);
|
|
19118
19182
|
return true;
|
|
19119
19183
|
} catch (_) {
|
|
19120
19184
|
return false;
|
|
@@ -19131,7 +19195,7 @@ ${ JSON.stringify(filterExp, null, 2) }
|
|
|
19131
19195
|
errors = errors.concat([new ValidationError(options.key, url, `string expected, "${ type }" found`)]);
|
|
19132
19196
|
return errors;
|
|
19133
19197
|
}
|
|
19134
|
-
if (!isValidUrl(url)) {
|
|
19198
|
+
if (!isValidUrl(url, true)) {
|
|
19135
19199
|
errors = errors.concat([new ValidationError(options.key, url, `invalid url "${ url }"`)]);
|
|
19136
19200
|
}
|
|
19137
19201
|
return errors;
|