@mapbox/mapbox-gl-style-spec 13.23.0 → 13.23.1-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/CHANGELOG.md +6 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +6 -6
- package/dist/index.es.js.map +1 -1
- package/expression/definitions/coalesce.js +7 -5
- package/expression/types/formatted.js +2 -1
- package/package.json +1 -1
- package/reference/v8.json +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, 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: [
|
|
@@ -8686,7 +8686,7 @@
|
|
|
8686
8686
|
|
|
8687
8687
|
class FormattedSection {
|
|
8688
8688
|
constructor(text, image, scale, fontStack, textColor) {
|
|
8689
|
-
this.text = text;
|
|
8689
|
+
this.text = text.normalize ? text.normalize() : text;
|
|
8690
8690
|
this.image = image;
|
|
8691
8691
|
this.scale = scale;
|
|
8692
8692
|
this.fontStack = fontStack;
|
|
@@ -10523,17 +10523,17 @@
|
|
|
10523
10523
|
evaluate(ctx) {
|
|
10524
10524
|
let result = null;
|
|
10525
10525
|
let argCount = 0;
|
|
10526
|
-
let
|
|
10526
|
+
let firstImage;
|
|
10527
10527
|
for (const arg of this.args) {
|
|
10528
10528
|
argCount++;
|
|
10529
10529
|
result = arg.evaluate(ctx);
|
|
10530
10530
|
if (result && result instanceof ResolvedImage && !result.available) {
|
|
10531
|
-
if (!
|
|
10532
|
-
|
|
10531
|
+
if (!firstImage) {
|
|
10532
|
+
firstImage = result;
|
|
10533
10533
|
}
|
|
10534
10534
|
result = null;
|
|
10535
10535
|
if (argCount === this.args.length) {
|
|
10536
|
-
|
|
10536
|
+
return firstImage;
|
|
10537
10537
|
}
|
|
10538
10538
|
}
|
|
10539
10539
|
if (result !== null)
|