@mapbox/mapbox-gl-style-spec 14.32.0-rc.1 → 14.33.0-rc.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/dist/index.cjs +31 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.es.js +31 -4
- package/dist/index.es.js.map +1 -1
- package/expression/definitions/config.ts +7 -2
- package/package.json +1 -1
- package/reference/v8.json +24 -2
- package/types.ts +2 -0
|
@@ -13,7 +13,10 @@ import type EvaluationContext from '../evaluation_context';
|
|
|
13
13
|
const FQIDSeparator = '\u001F';
|
|
14
14
|
|
|
15
15
|
export function makeConfigFQID(id: string, ownScope?: string | null, contextScope?: string | null): string {
|
|
16
|
-
|
|
16
|
+
let fqid = id || '';
|
|
17
|
+
if (ownScope) fqid = fqid ? fqid + FQIDSeparator + ownScope : ownScope;
|
|
18
|
+
if (contextScope) fqid = fqid ? fqid + FQIDSeparator + contextScope : contextScope;
|
|
19
|
+
return fqid;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -115,7 +118,9 @@ class Config implements Expression {
|
|
|
115
118
|
if (value) {
|
|
116
119
|
// temporarily override scope to parent to evaluate config expressions passed from the parent
|
|
117
120
|
const originalScope = ctx.scope;
|
|
118
|
-
|
|
121
|
+
const scope = originalScope || '';
|
|
122
|
+
const sep = scope.indexOf(FQIDSeparator);
|
|
123
|
+
ctx.scope = sep >= 0 ? scope.slice(sep + 1) : '';
|
|
119
124
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
120
125
|
result = value.evaluate(ctx);
|
|
121
126
|
ctx.scope = originalScope;
|
package/package.json
CHANGED
package/reference/v8.json
CHANGED
|
@@ -1493,6 +1493,28 @@
|
|
|
1493
1493
|
"value": "string",
|
|
1494
1494
|
"doc": "An array of one or more tile source URLs, as in the TileJSON spec. Requires `batched-model` source type."
|
|
1495
1495
|
},
|
|
1496
|
+
"bounds": {
|
|
1497
|
+
"type": "array",
|
|
1498
|
+
"value": "number",
|
|
1499
|
+
"length": 4,
|
|
1500
|
+
"default": [
|
|
1501
|
+
-180,
|
|
1502
|
+
-85.051129,
|
|
1503
|
+
180,
|
|
1504
|
+
85.051129
|
|
1505
|
+
],
|
|
1506
|
+
"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]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL. Requires `batched-model` source type."
|
|
1507
|
+
},
|
|
1508
|
+
"extra_bounds": {
|
|
1509
|
+
"type": "array",
|
|
1510
|
+
"value": {
|
|
1511
|
+
"type": "array",
|
|
1512
|
+
"value": "number",
|
|
1513
|
+
"length": 4,
|
|
1514
|
+
"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]`."
|
|
1515
|
+
},
|
|
1516
|
+
"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. Requires `batched-model` source type."
|
|
1517
|
+
},
|
|
1496
1518
|
"models": {
|
|
1497
1519
|
"type": "modelSourceModels",
|
|
1498
1520
|
"doc": "Defines properties of 3D models in collection. Requires `model` source type."
|
|
@@ -7349,7 +7371,7 @@
|
|
|
7349
7371
|
"default": 1,
|
|
7350
7372
|
"minimum": 0,
|
|
7351
7373
|
"maximum": 1,
|
|
7352
|
-
"doc": "The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",
|
|
7374
|
+
"doc": "The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available. When consecutive `fill-extrusion` and `building` layers are semi-transparent, they are rendered together: they occlude each other and are only transparent against other layers. If another layer type is placed between them, each layer is blended separately and later layers are visible through earlier ones.",
|
|
7353
7375
|
"transition": true,
|
|
7354
7376
|
"sdk-support": {
|
|
7355
7377
|
"basic functionality": {
|
|
@@ -8077,7 +8099,7 @@
|
|
|
8077
8099
|
"default": 1,
|
|
8078
8100
|
"minimum": 0,
|
|
8079
8101
|
"maximum": 1,
|
|
8080
|
-
"doc": "The opacity of the entire procedural buildings layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",
|
|
8102
|
+
"doc": "The opacity of the entire procedural buildings layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available. When consecutive `fill-extrusion` and `building` layers are semi-transparent, they are rendered together: they occlude each other and are only transparent against other layers. If another layer type is placed between them, each layer is blended separately and later layers are visible through earlier ones.",
|
|
8081
8103
|
"transition": true,
|
|
8082
8104
|
"private": true,
|
|
8083
8105
|
"sdk-support": {
|
package/types.ts
CHANGED
|
@@ -535,6 +535,8 @@ export type ModelSourceSpecification = {
|
|
|
535
535
|
"maxzoom"?: number,
|
|
536
536
|
"minzoom"?: number,
|
|
537
537
|
"tiles"?: Array<string>,
|
|
538
|
+
"bounds"?: [number, number, number, number],
|
|
539
|
+
"extra_bounds"?: Array<[number, number, number, number]>,
|
|
538
540
|
"models"?: ModelSourceModelsSpecification
|
|
539
541
|
};
|
|
540
542
|
|