@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
- "version": "14.32.0-rc.1",
3
+ "version": "14.32.0",
4
4
  "description": "a specification for mapbox gl styles",
5
5
  "author": "Mapbox",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
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."
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