@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.d.ts CHANGED
@@ -1420,6 +1420,23 @@ declare const _exports: {
1420
1420
  value: string;
1421
1421
  doc: string;
1422
1422
  };
1423
+ bounds: {
1424
+ type: string;
1425
+ value: string;
1426
+ length: number;
1427
+ default: number[];
1428
+ doc: string;
1429
+ };
1430
+ extra_bounds: {
1431
+ type: string;
1432
+ value: {
1433
+ type: string;
1434
+ value: string;
1435
+ length: number;
1436
+ doc: string;
1437
+ };
1438
+ doc: string;
1439
+ };
1423
1440
  models: {
1424
1441
  type: string;
1425
1442
  doc: string;
@@ -11128,6 +11145,8 @@ type ModelSourceSpecification = {
11128
11145
  "maxzoom"?: number;
11129
11146
  "minzoom"?: number;
11130
11147
  "tiles"?: Array<string>;
11148
+ "bounds"?: [number, number, number, number];
11149
+ "extra_bounds"?: Array<[number, number, number, number]>;
11131
11150
  "models"?: ModelSourceModelsSpecification;
11132
11151
  };
11133
11152
  type SourceSpecification = VectorSourceSpecification | RasterSourceSpecification | RasterDEMSourceSpecification | RasterArraySourceSpecification | GeoJSONSourceSpecification | VideoSourceSpecification | ImageSourceSpecification | ModelSourceSpecification;
package/dist/index.es.js CHANGED
@@ -1464,6 +1464,28 @@ var source_model = {
1464
1464
  value: "string",
1465
1465
  doc: "An array of one or more tile source URLs, as in the TileJSON spec. Requires `batched-model` source type."
1466
1466
  },
1467
+ bounds: {
1468
+ type: "array",
1469
+ value: "number",
1470
+ length: 4,
1471
+ "default": [
1472
+ -180,
1473
+ -85.051129,
1474
+ 180,
1475
+ 85.051129
1476
+ ],
1477
+ 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."
1478
+ },
1479
+ extra_bounds: {
1480
+ type: "array",
1481
+ value: {
1482
+ type: "array",
1483
+ value: "number",
1484
+ length: 4,
1485
+ 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]`."
1486
+ },
1487
+ 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."
1488
+ },
1467
1489
  models: {
1468
1490
  type: "modelSourceModels",
1469
1491
  doc: "Defines properties of 3D models in collection. Requires `model` source type."
@@ -7229,7 +7251,7 @@ var paint_building = {
7229
7251
  "default": 1,
7230
7252
  minimum: 0,
7231
7253
  maximum: 1,
7232
- 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.",
7254
+ 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.",
7233
7255
  transition: true,
7234
7256
  "private": true,
7235
7257
  "sdk-support": {
@@ -11385,7 +11407,7 @@ var v8 = {
11385
11407
  "default": 1,
11386
11408
  minimum: 0,
11387
11409
  maximum: 1,
11388
- 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.",
11410
+ 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.",
11389
11411
  transition: true,
11390
11412
  "sdk-support": {
11391
11413
  "basic functionality": {
@@ -15022,7 +15044,10 @@ var EXTENT = 8192;
15022
15044
 
15023
15045
  const FQIDSeparator = "";
15024
15046
  function makeConfigFQID(id, ownScope, contextScope) {
15025
- return [id, ownScope, contextScope].filter(Boolean).join(FQIDSeparator);
15047
+ let fqid = id || "";
15048
+ if (ownScope) fqid = fqid ? fqid + FQIDSeparator + ownScope : ownScope;
15049
+ if (contextScope) fqid = fqid ? fqid + FQIDSeparator + contextScope : contextScope;
15050
+ return fqid;
15026
15051
  }
15027
15052
  function coerceValue(type, value) {
15028
15053
  switch (type) {
@@ -15103,7 +15128,9 @@ class Config {
15103
15128
  let result = defaultValue;
15104
15129
  if (value) {
15105
15130
  const originalScope = ctx.scope;
15106
- ctx.scope = (originalScope || "").split(FQIDSeparator).slice(1).join(FQIDSeparator);
15131
+ const scope = originalScope || "";
15132
+ const sep = scope.indexOf(FQIDSeparator);
15133
+ ctx.scope = sep >= 0 ? scope.slice(sep + 1) : "";
15107
15134
  result = value.evaluate(ctx);
15108
15135
  ctx.scope = originalScope;
15109
15136
  }