@mapbox/mapbox-gl-style-spec 14.30.0-alpha.742b92e7a62 → 14.30.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.30.0-alpha.742b92e7a62",
3
+ "version": "14.30.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
@@ -1647,14 +1647,6 @@
1647
1647
  }
1648
1648
  }
1649
1649
  },
1650
- "placement-group": {
1651
- "doc": "Marks a placement priority group relative to other layers, going from lower to higher priority. Symbols from groups with higher priorities will be placed first",
1652
- "sdk-support": {
1653
- "basic functionality": {}
1654
- },
1655
- "private": true,
1656
- "experimental": true
1657
- },
1658
1650
  "clip": {
1659
1651
  "doc": "Layer that removes 3D content from map.",
1660
1652
  "sdk-support": {
@@ -1675,7 +1667,7 @@
1675
1667
  },
1676
1668
  "source": {
1677
1669
  "type": "string",
1678
- "doc": "Name of a source description to be used for this layer. Required for all layer types except `background`, `slot`, and `placement-group`."
1670
+ "doc": "Name of a source description to be used for this layer. Required for all layer types except `background` and `slot`."
1679
1671
  },
1680
1672
  "source-layer": {
1681
1673
  "type": "string",
@@ -10324,56 +10316,6 @@
10324
10316
  ]
10325
10317
  },
10326
10318
  "property-type": "data-driven"
10327
- },
10328
- "placement-priority": {
10329
- "type": "number",
10330
- "doc": "In-group placement priority. Higher values are placed first within the symbol's placement group.",
10331
- "default": 0,
10332
- "minimum": 0,
10333
- "transition": false,
10334
- "appearance": true,
10335
- "expression": {
10336
- "interpolated": true,
10337
- "parameters": [
10338
- "zoom",
10339
- "pitch",
10340
- "feature",
10341
- "feature-state",
10342
- "measure-light",
10343
- "distance-from-center"
10344
- ]
10345
- },
10346
- "property-type": "data-driven",
10347
- "sdk-support": {
10348
- "basic functionality": {},
10349
- "data-driven styling": {}
10350
- },
10351
- "private": true,
10352
- "experimental": true
10353
- },
10354
- "placement-group": {
10355
- "type": "string",
10356
- "doc": "Assigns this symbol layer to the specified placement-group layer, placing its symbols as if they were drawn within that group. When unset, the layer's symbols use an implicitly created placement group located at the same position as the symbol layer.",
10357
- "transition": false,
10358
- "appearance": true,
10359
- "expression": {
10360
- "interpolated": false,
10361
- "parameters": [
10362
- "zoom",
10363
- "pitch",
10364
- "feature",
10365
- "feature-state",
10366
- "measure-light",
10367
- "distance-from-center"
10368
- ]
10369
- },
10370
- "property-type": "data-driven",
10371
- "sdk-support": {
10372
- "basic functionality": {},
10373
- "data-driven styling": {}
10374
- },
10375
- "private": true,
10376
- "experimental": true
10377
10319
  }
10378
10320
  },
10379
10321
  "paint_raster": {
package/types.ts CHANGED
@@ -904,15 +904,7 @@ export type SymbolLayerSpecification = {
904
904
  "icon-color-brightness-min"?: number | ExpressionSpecification,
905
905
  "icon-color-brightness-max"?: number | ExpressionSpecification,
906
906
  "symbol-z-offset"?: DataDrivenPropertyValueSpecification<number>,
907
- "symbol-z-offset-transition"?: TransitionSpecification,
908
- /**
909
- * @experimental This property is experimental and subject to change in future versions.
910
- */
911
- "placement-priority"?: DataDrivenPropertyValueSpecification<number>,
912
- /**
913
- * @experimental This property is experimental and subject to change in future versions.
914
- */
915
- "placement-group"?: DataDrivenPropertyValueSpecification<string>
907
+ "symbol-z-offset-transition"?: TransitionSpecification
916
908
  },
917
909
  "appearances"?: Array<AppearanceSpecification>
918
910
  };
@@ -1532,21 +1524,6 @@ export type SlotLayerSpecification = {
1532
1524
  "paint"?: never
1533
1525
  };
1534
1526
 
1535
- export type PlacementGroupLayerSpecification = {
1536
- "id": string,
1537
- "type": "placement-group",
1538
- "metadata"?: unknown,
1539
- "source"?: never,
1540
- "source-layer"?: never,
1541
- "slot"?: string,
1542
- "minzoom"?: never,
1543
- "maxzoom"?: never,
1544
- "filter"?: never,
1545
- "appearances"?: Array<AppearanceSpecification>,
1546
- "layout"?: never,
1547
- "paint"?: never
1548
- };
1549
-
1550
1527
  export type ClipLayerSpecification = {
1551
1528
  "id": string,
1552
1529
  "type": "clip",
@@ -1586,7 +1563,6 @@ export type LayerSpecification =
1586
1563
  | BackgroundLayerSpecification
1587
1564
  | SkyLayerSpecification
1588
1565
  | SlotLayerSpecification
1589
- | PlacementGroupLayerSpecification
1590
1566
  | ClipLayerSpecification;
1591
1567
 
1592
1568
  export type LayoutSpecification = UnionToIntersection<NonNullable<LayerSpecification['layout']>>;
@@ -1692,11 +1668,6 @@ export type SkyLayer = SkyLayerSpecification;
1692
1668
  */
1693
1669
  export type SlotLayer = SlotLayerSpecification;
1694
1670
 
1695
- /**
1696
- * @deprecated Use `PlacementGroupLayerSpecification` instead.
1697
- */
1698
- export type PlacementGroupLayer = PlacementGroupLayerSpecification;
1699
-
1700
1671
  /**
1701
1672
  * @deprecated Use `ClipLayerSpecification` instead.
1702
1673
  */
@@ -72,7 +72,7 @@ export default function validateLayer(options: LayerValidatorOptions): Validatio
72
72
  } else {
73
73
  type = unbundle(parent.type) as string;
74
74
  }
75
- } else if (!(type === 'background' || type === 'sky' || type === 'slot' || type === 'placement-group')) {
75
+ } else if (!(type === 'background' || type === 'sky' || type === 'slot')) {
76
76
  if (!layer.source) {
77
77
  errors.push(new ValidationError(key, layer, 'missing required property "source"'));
78
78
  } else if (!isString(layer.source)) {