@mapbox/mapbox-gl-style-spec 14.17.0 → 14.18.0-beta.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 CHANGED
@@ -553,6 +553,19 @@
553
553
  ios: "11.0.0"
554
554
  }
555
555
  }
556
+ },
557
+ "shadow-draw-before-layer": {
558
+ type: "string",
559
+ "property-type": "data-constant",
560
+ doc: "Specify a layer before which shadows are drawn on the ground. If not specified, shadows are drawn after the last 3D layer. This property does not affect shadows on terrain.",
561
+ "sdk-support": {
562
+ "basic functionality": {
563
+ js: "3.18.0",
564
+ android: "11.18.0",
565
+ ios: "11.18.0"
566
+ }
567
+ },
568
+ experimental: true
556
569
  }
557
570
  };
558
571
  var properties_light_ambient = {
@@ -1405,6 +1418,10 @@
1405
1418
  },
1406
1419
  doc: "Type of model source to be added. From single models to represent 2D layers to 3D tiled models covering a wide area."
1407
1420
  },
1421
+ url: {
1422
+ type: "string",
1423
+ doc: "A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<Tileset ID>`. Required if `tiles` is not provided."
1424
+ },
1408
1425
  maxzoom: {
1409
1426
  type: "number",
1410
1427
  "default": 18,
@@ -1808,6 +1825,21 @@
1808
1825
  ]
1809
1826
  }
1810
1827
  ]
1828
+ },
1829
+ "model-allow-density-reduction": {
1830
+ type: "boolean",
1831
+ "default": true,
1832
+ transition: false,
1833
+ experimental: true,
1834
+ doc: "If true, the models will be reduced in density based on the zoom level. This is useful for large datasets that may be slow to render.",
1835
+ "sdk-support": {
1836
+ "basic functionality": {
1837
+ js: "0.10.0",
1838
+ android: "2.0.1",
1839
+ ios: "2.0.0"
1840
+ }
1841
+ },
1842
+ "property-type": "data-constant"
1811
1843
  }
1812
1844
  };
1813
1845
  var layout_clip = {
@@ -23784,7 +23816,7 @@ Use an identity property function instead: ${ example }.`)];
23784
23816
  const errors = [];
23785
23817
  Object.keys(obj).forEach(k => {
23786
23818
  if (!allowed.has(k)) {
23787
- const prop = path ? `${ path }.${ k }` : null;
23819
+ const prop = null;
23788
23820
  errors.push(new ValidationError(prop, obj[k], `Unsupported property "${ k }"`));
23789
23821
  }
23790
23822
  });
@@ -23801,13 +23833,6 @@ Use an identity property function instead: ${ example }.`)];
23801
23833
  ]);
23802
23834
  function getSourceErrors(source, i) {
23803
23835
  const errors = [];
23804
- const sourceKeys = [
23805
- 'type',
23806
- 'url',
23807
- 'tileSize',
23808
- 'promoteId'
23809
- ];
23810
- errors.push(...getAllowedKeyErrors(source, sourceKeys, 'source'));
23811
23836
  if (!acceptedSourceTypes.has(String(source.type))) {
23812
23837
  errors.push(new ValidationError(`sources[${ i }].type`, source.type, `Expected one of [${ Array.from(acceptedSourceTypes).join(', ') }]`));
23813
23838
  }