@mapbox/mapbox-gl-style-spec 14.19.0-beta.1 → 14.19.0
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 +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.es.js +11 -11
- package/dist/index.es.js.map +1 -1
- package/expression/definitions/distance.ts +4 -4
- package/expression/definitions/index.ts +2 -1
- package/expression/parsing_context.ts +1 -1
- package/group_by_layout.ts +1 -1
- package/package.json +1 -1
- package/reference/v8.json +1 -5
- package/types.ts +0 -6
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": {
|
|
@@ -3157,7 +3155,6 @@
|
|
|
3157
3155
|
10
|
|
3158
3156
|
],
|
|
3159
3157
|
experimental: true,
|
|
3160
|
-
"private": true,
|
|
3161
3158
|
expression: {
|
|
3162
3159
|
interpolated: false
|
|
3163
3160
|
},
|
|
@@ -3680,7 +3677,6 @@
|
|
|
3680
3677
|
10
|
|
3681
3678
|
],
|
|
3682
3679
|
experimental: true,
|
|
3683
|
-
"private": true,
|
|
3684
3680
|
expression: {
|
|
3685
3681
|
interpolated: false
|
|
3686
3682
|
},
|
|
@@ -16166,10 +16162,10 @@
|
|
|
16166
16162
|
const y2 = 180 - y * 360;
|
|
16167
16163
|
return 360 / Math.PI * Math.atan(Math.exp(y2 * Math.PI / 180)) - 90;
|
|
16168
16164
|
}
|
|
16169
|
-
function getLngLatPoint(coord, canonical) {
|
|
16165
|
+
function getLngLatPoint(coord, canonical, extent = EXTENT) {
|
|
16170
16166
|
const tilesAtZoom = Math.pow(2, canonical.z);
|
|
16171
|
-
const x = (coord.x /
|
|
16172
|
-
const y = (coord.y /
|
|
16167
|
+
const x = (coord.x / extent + canonical.x) / tilesAtZoom;
|
|
16168
|
+
const y = (coord.y / extent + canonical.y) / tilesAtZoom;
|
|
16173
16169
|
return [
|
|
16174
16170
|
lngFromMercatorX(x),
|
|
16175
16171
|
latFromMercatorY(y)
|
|
@@ -16608,7 +16604,7 @@
|
|
|
16608
16604
|
}
|
|
16609
16605
|
console.warn('Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.');
|
|
16610
16606
|
} else {
|
|
16611
|
-
console.warn('Distance Expression:
|
|
16607
|
+
console.warn('Distance Expression: requires valid feature and canonical information.');
|
|
16612
16608
|
}
|
|
16613
16609
|
return null;
|
|
16614
16610
|
}
|
|
@@ -17021,7 +17017,8 @@
|
|
|
17021
17017
|
'pitch',
|
|
17022
17018
|
'distance-from-center',
|
|
17023
17019
|
'measure-light',
|
|
17024
|
-
'raster-particle-speed'
|
|
17020
|
+
'raster-particle-speed',
|
|
17021
|
+
'is-active-floor'
|
|
17025
17022
|
]);
|
|
17026
17023
|
}
|
|
17027
17024
|
|
|
@@ -18649,10 +18646,13 @@
|
|
|
18649
18646
|
BooleanType,
|
|
18650
18647
|
varargs(StringType),
|
|
18651
18648
|
(ctx, args) => {
|
|
18652
|
-
const hasActiveFloors = ctx.globals.activeFloors && ctx.globals.activeFloors.size > 0;
|
|
18649
|
+
const hasActiveFloors = ctx.globals && ctx.globals.activeFloors && ctx.globals.activeFloors.size > 0;
|
|
18653
18650
|
if (!hasActiveFloors) {
|
|
18654
18651
|
return false;
|
|
18655
18652
|
}
|
|
18653
|
+
if (args.length === 0) {
|
|
18654
|
+
return true;
|
|
18655
|
+
}
|
|
18656
18656
|
const floorIds = ctx.globals.activeFloors;
|
|
18657
18657
|
return args.some(arg => {
|
|
18658
18658
|
const value = arg.evaluate(ctx);
|