@mapbox/mapbox-gl-style-spec 14.18.1 → 14.19.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 +67 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.es.js +67 -9
- package/dist/index.es.js.map +1 -1
- package/expression/definitions/index.ts +2 -1
- package/expression/parsing_context.ts +1 -1
- package/package.json +1 -1
- package/reference/v8.json +61 -7
- package/types.ts +8 -8
package/dist/index.cjs
CHANGED
|
@@ -2631,8 +2631,7 @@
|
|
|
2631
2631
|
},
|
|
2632
2632
|
"line-z-offset": {
|
|
2633
2633
|
type: "number",
|
|
2634
|
-
|
|
2635
|
-
doc: "Vertical offset from ground, in meters. Defaults to 0. This is an experimental property with some known issues:\n * Not supported for globe projection at the moment \n * Elevated line discontinuity is possible on tile borders with terrain enabled \n * Rendering artifacts can happen near line joins and line caps depending on the line styling \n * Rendering artifacts relating to `line-opacity` and `line-blur` \n * Elevated line visibility is determined by layer order \n * Z-fighting issues can happen with intersecting elevated lines \n * Elevated lines don't cast shadows",
|
|
2634
|
+
doc: "Vertical offset from ground, in meters. Not supported for globe projection at the moment.",
|
|
2636
2635
|
"default": 0,
|
|
2637
2636
|
requires: [
|
|
2638
2637
|
"line-elevation-reference"
|
|
@@ -2677,7 +2676,6 @@
|
|
|
2677
2676
|
}
|
|
2678
2677
|
},
|
|
2679
2678
|
"default": "none",
|
|
2680
|
-
experimental: true,
|
|
2681
2679
|
transition: false,
|
|
2682
2680
|
"sdk-support": {
|
|
2683
2681
|
"basic functionality": {
|
|
@@ -2768,6 +2766,38 @@
|
|
|
2768
2766
|
]
|
|
2769
2767
|
},
|
|
2770
2768
|
"property-type": "data-constant"
|
|
2769
|
+
},
|
|
2770
|
+
"line-elevation-ground-scale": {
|
|
2771
|
+
type: "number",
|
|
2772
|
+
"default": 0,
|
|
2773
|
+
minimum: 0,
|
|
2774
|
+
maximum: 1,
|
|
2775
|
+
doc: "Controls how much the elevation of lines with `line-elevation-reference` set to `sea` scales with terrain exaggeration. A value of 0 keeps the line at a fixed altitude above sea level. A value of 1 scales the elevation proportionally with terrain exaggeration.",
|
|
2776
|
+
"sdk-support": {
|
|
2777
|
+
"basic functionality": {
|
|
2778
|
+
js: "3.19.0",
|
|
2779
|
+
android: "11.19.0",
|
|
2780
|
+
ios: "11.19.0"
|
|
2781
|
+
},
|
|
2782
|
+
"data-driven styling": {
|
|
2783
|
+
js: "3.19.0",
|
|
2784
|
+
android: "11.19.0",
|
|
2785
|
+
ios: "11.19.0"
|
|
2786
|
+
}
|
|
2787
|
+
},
|
|
2788
|
+
expression: {
|
|
2789
|
+
interpolated: true,
|
|
2790
|
+
parameters: [
|
|
2791
|
+
"zoom",
|
|
2792
|
+
"feature",
|
|
2793
|
+
"line-progress"
|
|
2794
|
+
]
|
|
2795
|
+
},
|
|
2796
|
+
requires: [
|
|
2797
|
+
"line-z-offset"
|
|
2798
|
+
],
|
|
2799
|
+
transition: true,
|
|
2800
|
+
"property-type": "data-driven"
|
|
2771
2801
|
}
|
|
2772
2802
|
};
|
|
2773
2803
|
var layout_symbol = {
|
|
@@ -3125,7 +3155,6 @@
|
|
|
3125
3155
|
10
|
|
3126
3156
|
],
|
|
3127
3157
|
experimental: true,
|
|
3128
|
-
"private": true,
|
|
3129
3158
|
expression: {
|
|
3130
3159
|
interpolated: false
|
|
3131
3160
|
},
|
|
@@ -3648,7 +3677,6 @@
|
|
|
3648
3677
|
10
|
|
3649
3678
|
],
|
|
3650
3679
|
experimental: true,
|
|
3651
|
-
"private": true,
|
|
3652
3680
|
expression: {
|
|
3653
3681
|
interpolated: false
|
|
3654
3682
|
},
|
|
@@ -9611,7 +9639,7 @@
|
|
|
9611
9639
|
},
|
|
9612
9640
|
"raster-elevation": {
|
|
9613
9641
|
type: "number",
|
|
9614
|
-
doc: "
|
|
9642
|
+
doc: "Defines an uniform elevation from the base specified in raster-elevation-reference, in meters.",
|
|
9615
9643
|
"default": 0,
|
|
9616
9644
|
minimum: 0,
|
|
9617
9645
|
transition: true,
|
|
@@ -9630,6 +9658,32 @@
|
|
|
9630
9658
|
]
|
|
9631
9659
|
},
|
|
9632
9660
|
"property-type": "data-constant"
|
|
9661
|
+
},
|
|
9662
|
+
"raster-elevation-reference": {
|
|
9663
|
+
type: "enum",
|
|
9664
|
+
doc: "Selects the base of raster-elevation.",
|
|
9665
|
+
values: {
|
|
9666
|
+
sea: {
|
|
9667
|
+
doc: "Use this mode to elevate raster layers relative to the sea level."
|
|
9668
|
+
},
|
|
9669
|
+
ground: {
|
|
9670
|
+
doc: "Use this mode to elevate raster layers relative to the ground's height below them."
|
|
9671
|
+
}
|
|
9672
|
+
},
|
|
9673
|
+
"default": "sea",
|
|
9674
|
+
transition: false,
|
|
9675
|
+
experimental: true,
|
|
9676
|
+
"sdk-support": {
|
|
9677
|
+
"basic functionality": {
|
|
9678
|
+
js: "3.19.0",
|
|
9679
|
+
android: "11.19.0",
|
|
9680
|
+
ios: "11.19.0"
|
|
9681
|
+
}
|
|
9682
|
+
},
|
|
9683
|
+
expression: {
|
|
9684
|
+
interpolated: false
|
|
9685
|
+
},
|
|
9686
|
+
"property-type": "data-constant"
|
|
9633
9687
|
}
|
|
9634
9688
|
};
|
|
9635
9689
|
var paint_hillshade = {
|
|
@@ -11815,7 +11869,7 @@
|
|
|
11815
11869
|
},
|
|
11816
11870
|
"raster-particle-elevation": {
|
|
11817
11871
|
type: "number",
|
|
11818
|
-
doc: "
|
|
11872
|
+
doc: "Defines an uniform elevation from sea level, in meters.",
|
|
11819
11873
|
"default": 0,
|
|
11820
11874
|
minimum: 0,
|
|
11821
11875
|
transition: true,
|
|
@@ -16963,7 +17017,8 @@
|
|
|
16963
17017
|
'pitch',
|
|
16964
17018
|
'distance-from-center',
|
|
16965
17019
|
'measure-light',
|
|
16966
|
-
'raster-particle-speed'
|
|
17020
|
+
'raster-particle-speed',
|
|
17021
|
+
'is-active-floor'
|
|
16967
17022
|
]);
|
|
16968
17023
|
}
|
|
16969
17024
|
|
|
@@ -18591,10 +18646,13 @@
|
|
|
18591
18646
|
BooleanType,
|
|
18592
18647
|
varargs(StringType),
|
|
18593
18648
|
(ctx, args) => {
|
|
18594
|
-
const hasActiveFloors = ctx.globals.activeFloors && ctx.globals.activeFloors.size > 0;
|
|
18649
|
+
const hasActiveFloors = ctx.globals && ctx.globals.activeFloors && ctx.globals.activeFloors.size > 0;
|
|
18595
18650
|
if (!hasActiveFloors) {
|
|
18596
18651
|
return false;
|
|
18597
18652
|
}
|
|
18653
|
+
if (args.length === 0) {
|
|
18654
|
+
return true;
|
|
18655
|
+
}
|
|
18598
18656
|
const floorIds = ctx.globals.activeFloors;
|
|
18599
18657
|
return args.some(arg => {
|
|
18600
18658
|
const value = arg.evaluate(ctx);
|