@mapbox/mapbox-gl-style-spec 13.23.0-beta.1 → 13.24.0-alpha.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/CHANGELOG.md +1 -1
- package/dist/index.cjs +26 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +26 -23
- package/dist/index.es.js.map +1 -1
- package/expression/types/formatted.js +2 -1
- package/feature_filter/index.js +2 -1
- package/package.json +1 -1
- package/reference/v8.json +4 -1
- package/types.js +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
projection: {
|
|
103
103
|
type: "projection",
|
|
104
|
-
doc: "The projection the map should be rendered in.
|
|
104
|
+
doc: "The projection the map should be rendered in. Supported projections are Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Mercator, Natural Earth, Globe, and Winkel Tripel. Terrain, fog, sky and CustomLayerInterface are not supported for projections other than mercator.",
|
|
105
105
|
example: {
|
|
106
106
|
name: "albers",
|
|
107
107
|
center: [
|
|
@@ -3922,6 +3922,9 @@
|
|
|
3922
3922
|
},
|
|
3923
3923
|
winkelTripel: {
|
|
3924
3924
|
doc: "A Winkel Tripel projection."
|
|
3925
|
+
},
|
|
3926
|
+
globe: {
|
|
3927
|
+
doc: "A globe projection."
|
|
3925
3928
|
}
|
|
3926
3929
|
},
|
|
3927
3930
|
"default": "mercator",
|
|
@@ -8686,7 +8689,7 @@
|
|
|
8686
8689
|
|
|
8687
8690
|
class FormattedSection {
|
|
8688
8691
|
constructor(text, image, scale, fontStack, textColor) {
|
|
8689
|
-
this.text = text;
|
|
8692
|
+
this.text = text.normalize ? text.normalize() : text;
|
|
8690
8693
|
this.image = image;
|
|
8691
8694
|
this.scale = scale;
|
|
8692
8695
|
this.fontStack = fontStack;
|
|
@@ -12644,6 +12647,26 @@
|
|
|
12644
12647
|
return result;
|
|
12645
12648
|
}
|
|
12646
12649
|
|
|
12650
|
+
function unbundle(value) {
|
|
12651
|
+
if (value instanceof Number || value instanceof String || value instanceof Boolean) {
|
|
12652
|
+
return value.valueOf();
|
|
12653
|
+
} else {
|
|
12654
|
+
return value;
|
|
12655
|
+
}
|
|
12656
|
+
}
|
|
12657
|
+
function deepUnbundle(value) {
|
|
12658
|
+
if (Array.isArray(value)) {
|
|
12659
|
+
return value.map(deepUnbundle);
|
|
12660
|
+
} else if (value instanceof Object && !(value instanceof Number || value instanceof String || value instanceof Boolean)) {
|
|
12661
|
+
const unbundledValue = {};
|
|
12662
|
+
for (const key in value) {
|
|
12663
|
+
unbundledValue[key] = deepUnbundle(value[key]);
|
|
12664
|
+
}
|
|
12665
|
+
return unbundledValue;
|
|
12666
|
+
}
|
|
12667
|
+
return unbundle(value);
|
|
12668
|
+
}
|
|
12669
|
+
|
|
12647
12670
|
function isExpressionFilter(filter) {
|
|
12648
12671
|
if (filter === true || filter === false) {
|
|
12649
12672
|
return true;
|
|
@@ -12735,7 +12758,7 @@ ${ JSON.stringify(filterExp, null, 2) }
|
|
|
12735
12758
|
if (!isDynamicFilter(filter)) {
|
|
12736
12759
|
return filter;
|
|
12737
12760
|
}
|
|
12738
|
-
let result = filter
|
|
12761
|
+
let result = deepUnbundle(filter);
|
|
12739
12762
|
unionDynamicBranches(result);
|
|
12740
12763
|
result = collapseDynamicBooleanExpressions(result);
|
|
12741
12764
|
return result;
|
|
@@ -13664,26 +13687,6 @@ ${ JSON.stringify(filterExp, null, 2) }
|
|
|
13664
13687
|
}
|
|
13665
13688
|
}
|
|
13666
13689
|
|
|
13667
|
-
function unbundle(value) {
|
|
13668
|
-
if (value instanceof Number || value instanceof String || value instanceof Boolean) {
|
|
13669
|
-
return value.valueOf();
|
|
13670
|
-
} else {
|
|
13671
|
-
return value;
|
|
13672
|
-
}
|
|
13673
|
-
}
|
|
13674
|
-
function deepUnbundle(value) {
|
|
13675
|
-
if (Array.isArray(value)) {
|
|
13676
|
-
return value.map(deepUnbundle);
|
|
13677
|
-
} else if (value instanceof Object && !(value instanceof Number || value instanceof String || value instanceof Boolean)) {
|
|
13678
|
-
const unbundledValue = {};
|
|
13679
|
-
for (const key in value) {
|
|
13680
|
-
unbundledValue[key] = deepUnbundle(value[key]);
|
|
13681
|
-
}
|
|
13682
|
-
return unbundledValue;
|
|
13683
|
-
}
|
|
13684
|
-
return unbundle(value);
|
|
13685
|
-
}
|
|
13686
|
-
|
|
13687
13690
|
function validateObject(options) {
|
|
13688
13691
|
const key = options.key;
|
|
13689
13692
|
const object = options.value;
|