@mapbox/mapbox-gl-style-spec 14.32.0-rc.1 → 14.32.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.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."