@mapbox/mapbox-gl-style-spec 14.17.0-beta.2 → 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,
@@ -1501,7 +1518,6 @@
1501
1518
  android: "11.16.0",
1502
1519
  ios: "11.16.0"
1503
1520
  },
1504
- experimental: true,
1505
1521
  "private": true
1506
1522
  },
1507
1523
  raster: {
@@ -1809,6 +1825,21 @@
1809
1825
  ]
1810
1826
  }
1811
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"
1812
1843
  }
1813
1844
  };
1814
1845
  var layout_clip = {
@@ -2094,6 +2125,7 @@
2094
2125
  },
2095
2126
  "default": "visible",
2096
2127
  doc: "Whether this layer is displayed.",
2128
+ "private": true,
2097
2129
  "sdk-support": {
2098
2130
  "basic functionality": {
2099
2131
  js: "3.16.0",
@@ -2110,7 +2142,6 @@
2110
2142
  type: "boolean",
2111
2143
  "default": false,
2112
2144
  doc: "Whether to render facade details on the buildings.",
2113
- experimental: true,
2114
2145
  "private": true,
2115
2146
  "sdk-support": {
2116
2147
  "basic functionality": {
@@ -2138,7 +2169,7 @@
2138
2169
  maximum: 200,
2139
2170
  "default": 3,
2140
2171
  doc: "Number of floors created when building-facade is enabled.",
2141
- experimental: true,
2172
+ "private": true,
2142
2173
  "property-type": "data-driven",
2143
2174
  "sdk-support": {
2144
2175
  "basic functionality": {
@@ -2168,7 +2199,7 @@
2168
2199
  maximum: 20,
2169
2200
  "default": 3.1,
2170
2201
  doc: "Width of a floor. Think of this as measure how wide each unit should be. This effectively determines the number of units per each floor. Note that this does not affect the ground level facades (i.e. number of windows).",
2171
- experimental: true,
2202
+ "private": true,
2172
2203
  "property-type": "data-driven",
2173
2204
  "sdk-support": {
2174
2205
  "basic functionality": {
@@ -2203,7 +2234,7 @@
2203
2234
  0.9
2204
2235
  ],
2205
2236
  doc: "Given as fractions, specifies the percentage of unit area covered by windows when building-facade is enabled. Note that the area of a unit is ultimately determined by `building-facade-unit-width` and `building-facade-floors`.",
2206
- experimental: true,
2237
+ "private": true,
2207
2238
  "property-type": "data-driven",
2208
2239
  "sdk-support": {
2209
2240
  "basic functionality": {
@@ -2254,7 +2285,6 @@
2254
2285
  },
2255
2286
  "default": "flat",
2256
2287
  doc: "Roof type to use for the procedural buildings.",
2257
- experimental: true,
2258
2288
  "private": true,
2259
2289
  "sdk-support": {
2260
2290
  "basic functionality": {
@@ -2283,7 +2313,6 @@
2283
2313
  units: "meters",
2284
2314
  doc: "The height of the procedural buildings.",
2285
2315
  transition: true,
2286
- experimental: true,
2287
2316
  "private": true,
2288
2317
  "sdk-support": {
2289
2318
  "basic functionality": {
@@ -2312,7 +2341,6 @@
2312
2341
  requires: [
2313
2342
  "building-height"
2314
2343
  ],
2315
- experimental: true,
2316
2344
  "private": true,
2317
2345
  "sdk-support": {
2318
2346
  "basic functionality": {
@@ -2334,7 +2362,7 @@
2334
2362
  "building-flood-light-wall-radius": {
2335
2363
  "property-type": "data-driven",
2336
2364
  type: "number",
2337
- experimental: true,
2365
+ "private": true,
2338
2366
  units: "meters",
2339
2367
  "default": 0,
2340
2368
  minimum: 0,
@@ -2366,7 +2394,7 @@
2366
2394
  "building-flood-light-ground-radius": {
2367
2395
  "property-type": "data-driven",
2368
2396
  type: "number",
2369
- experimental: true,
2397
+ "private": true,
2370
2398
  units: "meters",
2371
2399
  "default": 0,
2372
2400
  doc: "The extent of the flood light effect on the ground beneath the buildings in meters.",
@@ -2397,7 +2425,7 @@
2397
2425
  "building-flip-roof-orientation": {
2398
2426
  "property-type": "data-driven",
2399
2427
  type: "boolean",
2400
- experimental: true,
2428
+ "private": true,
2401
2429
  units: "meters",
2402
2430
  "default": false,
2403
2431
  doc: "Flips the orientation of the roofs for the buildings. This only affects simple geometries. Namely buildings whose footprints form a quadrilateral. By default (false), the roof ridge takes the direction of the longer edge of the quadrilateral.",
@@ -7114,7 +7142,6 @@
7114
7142
  maximum: 1,
7115
7143
  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.",
7116
7144
  transition: true,
7117
- experimental: true,
7118
7145
  "private": true,
7119
7146
  "sdk-support": {
7120
7147
  "basic functionality": {
@@ -7137,7 +7164,6 @@
7137
7164
  "default": 0,
7138
7165
  minimum: 0,
7139
7166
  maximum: 1,
7140
- experimental: true,
7141
7167
  "private": true,
7142
7168
  expression: {
7143
7169
  interpolated: false,
@@ -7160,7 +7186,6 @@
7160
7186
  "default": 0,
7161
7187
  minimum: 0,
7162
7188
  maximum: 1,
7163
- experimental: true,
7164
7189
  "private": true,
7165
7190
  expression: {
7166
7191
  interpolated: true,
@@ -7181,7 +7206,6 @@
7181
7206
  "building-ambient-occlusion-ground-radius": {
7182
7207
  "property-type": "data-constant",
7183
7208
  type: "number",
7184
- experimental: true,
7185
7209
  "private": true,
7186
7210
  "default": 3,
7187
7211
  minimum: 0,
@@ -7204,7 +7228,6 @@
7204
7228
  "building-ambient-occlusion-ground-attenuation": {
7205
7229
  "property-type": "data-constant",
7206
7230
  type: "number",
7207
- experimental: true,
7208
7231
  "private": true,
7209
7232
  "default": 0.69,
7210
7233
  minimum: 0,
@@ -7228,7 +7251,6 @@
7228
7251
  "building-vertical-scale": {
7229
7252
  "property-type": "data-constant",
7230
7253
  type: "number",
7231
- experimental: true,
7232
7254
  "private": true,
7233
7255
  "default": 1,
7234
7256
  minimum: 0,
@@ -7253,7 +7275,6 @@
7253
7275
  "default": true,
7254
7276
  doc: "Enable/Disable shadow casting for this layer",
7255
7277
  transition: false,
7256
- experimental: true,
7257
7278
  "private": true,
7258
7279
  "sdk-support": {
7259
7280
  "basic functionality": {
@@ -7268,7 +7289,6 @@
7268
7289
  type: "color",
7269
7290
  "default": "rgba(193, 154, 127, 1)",
7270
7291
  doc: "Color buildings. This can be styled using different building parts (e.g. window, wall, roof).",
7271
- experimental: true,
7272
7292
  "private": true,
7273
7293
  "use-theme": true,
7274
7294
  transition: false,
@@ -7301,7 +7321,6 @@
7301
7321
  maximum: 5,
7302
7322
  units: "intensity",
7303
7323
  doc: "Controls the intensity of light emitted on the source features. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors).",
7304
- experimental: true,
7305
7324
  "private": true,
7306
7325
  "sdk-support": {
7307
7326
  "basic functionality": {
@@ -7331,7 +7350,7 @@
7331
7350
  minimum: 0,
7332
7351
  maximum: 1,
7333
7352
  doc: "Given as a fraction specifies the likelihood for the facades to be emissive when building-facade is enabled. A value of 0.0 means the window will never be emissive, while a value of 1.0 means the window will always be emissive. This can be used to create variations on a building where some windows are lit and some are not.",
7334
- experimental: true,
7353
+ "private": true,
7335
7354
  "property-type": "data-constant",
7336
7355
  "sdk-support": {
7337
7356
  "basic functionality": {
@@ -7350,6 +7369,7 @@
7350
7369
  },
7351
7370
  "building-cutoff-fade-range": {
7352
7371
  type: "number",
7372
+ "private": true,
7353
7373
  "default": 0,
7354
7374
  minimum: 0,
7355
7375
  maximum: 1,
@@ -7370,7 +7390,7 @@
7370
7390
  "building-flood-light-color": {
7371
7391
  "property-type": "data-constant",
7372
7392
  type: "color",
7373
- experimental: true,
7393
+ "private": true,
7374
7394
  "default": "#ffffff",
7375
7395
  doc: "The color of the flood light effect on the walls of the buildings.",
7376
7396
  requires: [
@@ -7396,7 +7416,7 @@
7396
7416
  "building-flood-light-intensity": {
7397
7417
  "property-type": "data-constant",
7398
7418
  type: "number",
7399
- experimental: true,
7419
+ "private": true,
7400
7420
  "default": 0,
7401
7421
  minimum: 0,
7402
7422
  maximum: 1,
@@ -7423,7 +7443,7 @@
7423
7443
  "building-flood-light-ground-attenuation": {
7424
7444
  "property-type": "data-constant",
7425
7445
  type: "number",
7426
- experimental: true,
7446
+ "private": true,
7427
7447
  "default": 0.69,
7428
7448
  minimum: 0,
7429
7449
  maximum: 1,
@@ -19200,7 +19220,6 @@
19200
19220
  return {
19201
19221
  kind: 'composite',
19202
19222
  interpolationType,
19203
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19204
19223
  interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
19205
19224
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access
19206
19225
  zoomStops: featureFunctionStops.map(s => s[0]),
@@ -19221,7 +19240,6 @@
19221
19240
  return {
19222
19241
  kind: 'camera',
19223
19242
  interpolationType,
19224
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19225
19243
  interpolationFactor: Interpolate.interpolationFactor.bind(void 0, interpolationType),
19226
19244
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
19227
19245
  zoomStops: parameters.stops.map(s => s[0]),
@@ -19373,10 +19391,11 @@
19373
19391
  }
19374
19392
  return val;
19375
19393
  } catch (e) {
19376
- if (!this._warningHistory[e.message]) {
19377
- this._warningHistory[e.message] = true;
19394
+ const error2 = e;
19395
+ if (!this._warningHistory[error2.message]) {
19396
+ this._warningHistory[error2.message] = true;
19378
19397
  if (typeof console !== 'undefined') {
19379
- console.warn(`Failed to evaluate expression "${ JSON.stringify(this.expression.serialize()) }". ${ e.message }`);
19398
+ console.warn(`Failed to evaluate expression "${ JSON.stringify(this.expression.serialize()) }". ${ error2.message }`);
19380
19399
  }
19381
19400
  }
19382
19401
  return this._defaultValue;
@@ -23797,7 +23816,7 @@ Use an identity property function instead: ${ example }.`)];
23797
23816
  const errors = [];
23798
23817
  Object.keys(obj).forEach(k => {
23799
23818
  if (!allowed.has(k)) {
23800
- const prop = path ? `${ path }.${ k }` : null;
23819
+ const prop = null;
23801
23820
  errors.push(new ValidationError(prop, obj[k], `Unsupported property "${ k }"`));
23802
23821
  }
23803
23822
  });
@@ -23814,13 +23833,6 @@ Use an identity property function instead: ${ example }.`)];
23814
23833
  ]);
23815
23834
  function getSourceErrors(source, i) {
23816
23835
  const errors = [];
23817
- const sourceKeys = [
23818
- 'type',
23819
- 'url',
23820
- 'tileSize',
23821
- 'promoteId'
23822
- ];
23823
- errors.push(...getAllowedKeyErrors(source, sourceKeys, 'source'));
23824
23836
  if (!acceptedSourceTypes.has(String(source.type))) {
23825
23837
  errors.push(new ValidationError(`sources[${ i }].type`, source.type, `Expected one of [${ Array.from(acceptedSourceTypes).join(', ') }]`));
23826
23838
  }