@mapbox/mapbox-gl-style-spec 14.17.0 → 14.18.0-beta.2

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.es.js CHANGED
@@ -547,6 +547,19 @@ var properties_light_directional = {
547
547
  ios: "11.0.0"
548
548
  }
549
549
  }
550
+ },
551
+ "shadow-draw-before-layer": {
552
+ type: "string",
553
+ "property-type": "data-constant",
554
+ 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.",
555
+ "sdk-support": {
556
+ "basic functionality": {
557
+ js: "3.18.0",
558
+ android: "11.18.0",
559
+ ios: "11.18.0"
560
+ }
561
+ },
562
+ experimental: true
550
563
  }
551
564
  };
552
565
  var properties_light_ambient = {
@@ -1399,6 +1412,10 @@ var source_model = {
1399
1412
  },
1400
1413
  doc: "Type of model source to be added. From single models to represent 2D layers to 3D tiled models covering a wide area."
1401
1414
  },
1415
+ url: {
1416
+ type: "string",
1417
+ doc: "A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<Tileset ID>`. Required if `tiles` is not provided."
1418
+ },
1402
1419
  maxzoom: {
1403
1420
  type: "number",
1404
1421
  "default": 18,
@@ -1802,6 +1819,21 @@ var layout_model = {
1802
1819
  ]
1803
1820
  }
1804
1821
  ]
1822
+ },
1823
+ "model-allow-density-reduction": {
1824
+ type: "boolean",
1825
+ "default": true,
1826
+ transition: false,
1827
+ experimental: true,
1828
+ 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.",
1829
+ "sdk-support": {
1830
+ "basic functionality": {
1831
+ js: "0.10.0",
1832
+ android: "2.0.1",
1833
+ ios: "2.0.0"
1834
+ }
1835
+ },
1836
+ "property-type": "data-constant"
1805
1837
  }
1806
1838
  };
1807
1839
  var layout_clip = {
@@ -23778,7 +23810,7 @@ function getAllowedKeyErrors(obj, keys, path) {
23778
23810
  const errors = [];
23779
23811
  Object.keys(obj).forEach(k => {
23780
23812
  if (!allowed.has(k)) {
23781
- const prop = path ? `${ path }.${ k }` : null;
23813
+ const prop = null;
23782
23814
  errors.push(new ValidationError(prop, obj[k], `Unsupported property "${ k }"`));
23783
23815
  }
23784
23816
  });
@@ -23795,13 +23827,6 @@ new Set([
23795
23827
  ]);
23796
23828
  function getSourceErrors(source, i) {
23797
23829
  const errors = [];
23798
- const sourceKeys = [
23799
- 'type',
23800
- 'url',
23801
- 'tileSize',
23802
- 'promoteId'
23803
- ];
23804
- errors.push(...getAllowedKeyErrors(source, sourceKeys, 'source'));
23805
23830
  if (!acceptedSourceTypes.has(String(source.type))) {
23806
23831
  errors.push(new ValidationError(`sources[${ i }].type`, source.type, `Expected one of [${ Array.from(acceptedSourceTypes).join(', ') }]`));
23807
23832
  }