@mapbox/mapbox-gl-style-spec 14.16.1 → 14.17.0-beta.2
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 +32 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -19
- package/dist/index.es.js +32 -67
- package/dist/index.es.js.map +1 -1
- package/expression/types/image_variant.ts +17 -29
- package/package.json +1 -1
- package/reference/v8.json +14 -8
- package/types.ts +1 -16
package/dist/index.cjs
CHANGED
|
@@ -806,7 +806,6 @@
|
|
|
806
806
|
length: 4,
|
|
807
807
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
808
808
|
},
|
|
809
|
-
experimental: true,
|
|
810
809
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
811
810
|
},
|
|
812
811
|
scheme: {
|
|
@@ -896,7 +895,6 @@
|
|
|
896
895
|
length: 4,
|
|
897
896
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
898
897
|
},
|
|
899
|
-
experimental: true,
|
|
900
898
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
901
899
|
},
|
|
902
900
|
minzoom: {
|
|
@@ -988,7 +986,6 @@
|
|
|
988
986
|
length: 4,
|
|
989
987
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
990
988
|
},
|
|
991
|
-
experimental: true,
|
|
992
989
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
993
990
|
},
|
|
994
991
|
minzoom: {
|
|
@@ -1081,7 +1078,6 @@
|
|
|
1081
1078
|
length: 4,
|
|
1082
1079
|
doc: "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`."
|
|
1083
1080
|
},
|
|
1084
|
-
experimental: true,
|
|
1085
1081
|
doc: "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
1086
1082
|
},
|
|
1087
1083
|
minzoom: {
|
|
@@ -1541,7 +1537,6 @@
|
|
|
1541
1537
|
},
|
|
1542
1538
|
model: {
|
|
1543
1539
|
doc: "A 3D model",
|
|
1544
|
-
experimental: true,
|
|
1545
1540
|
"sdk-support": {
|
|
1546
1541
|
"basic functionality": {
|
|
1547
1542
|
js: "3.0.0",
|
|
@@ -3561,6 +3556,7 @@
|
|
|
3561
3556
|
requires: [
|
|
3562
3557
|
"text-field"
|
|
3563
3558
|
],
|
|
3559
|
+
appearance: true,
|
|
3564
3560
|
"sdk-support": {
|
|
3565
3561
|
"basic functionality": {
|
|
3566
3562
|
js: "0.10.0",
|
|
@@ -3964,6 +3960,7 @@
|
|
|
3964
3960
|
requires: [
|
|
3965
3961
|
"text-field"
|
|
3966
3962
|
],
|
|
3963
|
+
appearance: true,
|
|
3967
3964
|
"sdk-support": {
|
|
3968
3965
|
"basic functionality": {
|
|
3969
3966
|
js: "0.10.0",
|
|
@@ -4095,6 +4092,7 @@
|
|
|
4095
4092
|
"!": "text-radial-offset"
|
|
4096
4093
|
}
|
|
4097
4094
|
],
|
|
4095
|
+
appearance: true,
|
|
4098
4096
|
"sdk-support": {
|
|
4099
4097
|
"basic functionality": {
|
|
4100
4098
|
js: "0.10.0",
|
|
@@ -7951,6 +7949,11 @@
|
|
|
7951
7949
|
js: "3.0.0",
|
|
7952
7950
|
android: "11.0.0",
|
|
7953
7951
|
ios: "11.0.0"
|
|
7952
|
+
},
|
|
7953
|
+
"data-driven styling": {
|
|
7954
|
+
js: "3.17.0",
|
|
7955
|
+
android: "11.17.0",
|
|
7956
|
+
ios: "11.17.0"
|
|
7954
7957
|
}
|
|
7955
7958
|
},
|
|
7956
7959
|
expression: {
|
|
@@ -7960,7 +7963,7 @@
|
|
|
7960
7963
|
"measure-light"
|
|
7961
7964
|
]
|
|
7962
7965
|
},
|
|
7963
|
-
"property-type": "data-
|
|
7966
|
+
"property-type": "data-driven"
|
|
7964
7967
|
},
|
|
7965
7968
|
"line-border-width": {
|
|
7966
7969
|
type: "number",
|
|
@@ -9799,7 +9802,8 @@
|
|
|
9799
9802
|
expression: {
|
|
9800
9803
|
interpolated: true,
|
|
9801
9804
|
parameters: [
|
|
9802
|
-
"zoom"
|
|
9805
|
+
"zoom",
|
|
9806
|
+
"measure-light"
|
|
9803
9807
|
]
|
|
9804
9808
|
},
|
|
9805
9809
|
"property-type": "data-constant"
|
|
@@ -10552,9 +10556,11 @@
|
|
|
10552
10556
|
interpolated: false
|
|
10553
10557
|
},
|
|
10554
10558
|
"property-type": "data-constant",
|
|
10555
|
-
experimental: true,
|
|
10556
10559
|
"sdk-support": {
|
|
10557
10560
|
"basic functionality": {
|
|
10561
|
+
js: "3.17.0",
|
|
10562
|
+
android: "11.10.0",
|
|
10563
|
+
ios: "11.10.0"
|
|
10558
10564
|
}
|
|
10559
10565
|
}
|
|
10560
10566
|
}
|
|
@@ -13670,72 +13676,31 @@
|
|
|
13670
13676
|
class ImageVariant {
|
|
13671
13677
|
constructor(id, options = {}) {
|
|
13672
13678
|
this.id = ImageId.from(id);
|
|
13673
|
-
this.
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
1,
|
|
13677
|
-
0,
|
|
13678
|
-
0,
|
|
13679
|
-
1,
|
|
13680
|
-
0,
|
|
13681
|
-
0
|
|
13682
|
-
]);
|
|
13683
|
-
} else {
|
|
13684
|
-
const {a, b, c, d, e, f} = options.transform;
|
|
13685
|
-
this.options.transform = new DOMMatrix([
|
|
13686
|
-
a,
|
|
13687
|
-
b,
|
|
13688
|
-
c,
|
|
13689
|
-
d,
|
|
13690
|
-
e,
|
|
13691
|
-
f
|
|
13692
|
-
]);
|
|
13693
|
-
}
|
|
13679
|
+
this.params = options.params;
|
|
13680
|
+
this.sx = options.sx || 1;
|
|
13681
|
+
this.sy = options.sy || 1;
|
|
13694
13682
|
}
|
|
13695
13683
|
toString() {
|
|
13696
|
-
|
|
13697
|
-
const serialized = {
|
|
13698
|
-
name: this.id.name,
|
|
13699
|
-
iconsetId: this.id.iconsetId,
|
|
13700
|
-
params: this.options.params,
|
|
13701
|
-
transform: {
|
|
13702
|
-
a,
|
|
13703
|
-
b,
|
|
13704
|
-
c,
|
|
13705
|
-
d,
|
|
13706
|
-
e,
|
|
13707
|
-
f
|
|
13708
|
-
}
|
|
13709
|
-
};
|
|
13710
|
-
return JSON.stringify(serialized);
|
|
13684
|
+
return JSON.stringify(this);
|
|
13711
13685
|
}
|
|
13712
13686
|
static parse(str) {
|
|
13713
|
-
let
|
|
13687
|
+
let id, params, sx, sy;
|
|
13714
13688
|
try {
|
|
13715
|
-
({
|
|
13716
|
-
} catch (
|
|
13689
|
+
({id, params, sx, sy} = JSON.parse(str) || {});
|
|
13690
|
+
} catch (e) {
|
|
13717
13691
|
return null;
|
|
13718
13692
|
}
|
|
13719
|
-
if (!
|
|
13693
|
+
if (!id)
|
|
13720
13694
|
return null;
|
|
13721
|
-
|
|
13722
|
-
return new ImageVariant({
|
|
13723
|
-
name,
|
|
13724
|
-
iconsetId
|
|
13725
|
-
}, {
|
|
13695
|
+
return new ImageVariant(id, {
|
|
13726
13696
|
params,
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
b,
|
|
13730
|
-
c,
|
|
13731
|
-
d,
|
|
13732
|
-
e,
|
|
13733
|
-
f
|
|
13734
|
-
])
|
|
13697
|
+
sx,
|
|
13698
|
+
sy
|
|
13735
13699
|
});
|
|
13736
13700
|
}
|
|
13737
|
-
scaleSelf(factor, yFactor) {
|
|
13738
|
-
this.
|
|
13701
|
+
scaleSelf(factor, yFactor = factor) {
|
|
13702
|
+
this.sx *= factor;
|
|
13703
|
+
this.sy *= yFactor;
|
|
13739
13704
|
return this;
|
|
13740
13705
|
}
|
|
13741
13706
|
}
|
|
@@ -22735,7 +22700,7 @@ Use an identity property function instead: ${ example }.`)];
|
|
|
22735
22700
|
function requireJsonlint () {
|
|
22736
22701
|
if (hasRequiredJsonlint) return jsonlint$1;
|
|
22737
22702
|
hasRequiredJsonlint = 1;
|
|
22738
|
-
(function (exports) {
|
|
22703
|
+
(function (exports$1) {
|
|
22739
22704
|
/*
|
|
22740
22705
|
Returns a Parser object of the following structure:
|
|
22741
22706
|
|
|
@@ -23779,9 +23744,9 @@ Use an identity property function instead: ${ example }.`)];
|
|
|
23779
23744
|
return new Parser();
|
|
23780
23745
|
}());
|
|
23781
23746
|
if (typeof commonjsRequire !== 'undefined' && 'object' !== 'undefined') {
|
|
23782
|
-
exports.parser = parser;
|
|
23783
|
-
exports.Parser = parser.Parser;
|
|
23784
|
-
exports.parse = function () {
|
|
23747
|
+
exports$1.parser = parser;
|
|
23748
|
+
exports$1.Parser = parser.Parser;
|
|
23749
|
+
exports$1.parse = function () {
|
|
23785
23750
|
return parser.parse.apply(parser, arguments);
|
|
23786
23751
|
};
|
|
23787
23752
|
}
|