@mapbox/mapbox-gl-style-spec 14.30.0 → 14.31.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/dist/index.d.ts CHANGED
@@ -1574,6 +1574,14 @@ declare const _exports: {
1574
1574
  };
1575
1575
  };
1576
1576
  };
1577
+ "placement-group": {
1578
+ doc: string;
1579
+ "sdk-support": {
1580
+ "basic functionality": {};
1581
+ };
1582
+ private: boolean;
1583
+ experimental: boolean;
1584
+ };
1577
1585
  clip: {
1578
1586
  doc: string;
1579
1587
  "sdk-support": {
@@ -9136,6 +9144,42 @@ declare const _exports: {
9136
9144
  };
9137
9145
  "property-type": string;
9138
9146
  };
9147
+ "placement-priority": {
9148
+ type: string;
9149
+ doc: string;
9150
+ default: number;
9151
+ minimum: number;
9152
+ transition: boolean;
9153
+ appearance: boolean;
9154
+ expression: {
9155
+ interpolated: boolean;
9156
+ parameters: string[];
9157
+ };
9158
+ "property-type": string;
9159
+ "sdk-support": {
9160
+ "basic functionality": {};
9161
+ "data-driven styling": {};
9162
+ };
9163
+ private: boolean;
9164
+ experimental: boolean;
9165
+ };
9166
+ "placement-group": {
9167
+ type: string;
9168
+ doc: string;
9169
+ transition: boolean;
9170
+ appearance: boolean;
9171
+ expression: {
9172
+ interpolated: boolean;
9173
+ parameters: string[];
9174
+ };
9175
+ "property-type": string;
9176
+ "sdk-support": {
9177
+ "basic functionality": {};
9178
+ "data-driven styling": {};
9179
+ };
9180
+ private: boolean;
9181
+ experimental: boolean;
9182
+ };
9139
9183
  };
9140
9184
  paint_raster: {
9141
9185
  "raster-opacity": {
@@ -9480,21 +9524,6 @@ declare const _exports: {
9480
9524
  };
9481
9525
  "property-type": string;
9482
9526
  };
9483
- "raster-allow-draping": {
9484
- type: string;
9485
- default: boolean;
9486
- experimental: boolean;
9487
- doc: string;
9488
- transition: boolean;
9489
- "property-type": string;
9490
- "sdk-support": {
9491
- "basic functionality": {
9492
- js: string;
9493
- android: string;
9494
- ios: string;
9495
- };
9496
- };
9497
- };
9498
9527
  };
9499
9528
  "paint_raster-particle": {
9500
9529
  "raster-particle-array-band": {
@@ -11429,6 +11458,14 @@ type SymbolLayerSpecification = {
11429
11458
  "icon-color-brightness-max"?: number | ExpressionSpecification;
11430
11459
  "symbol-z-offset"?: DataDrivenPropertyValueSpecification<number>;
11431
11460
  "symbol-z-offset-transition"?: TransitionSpecification;
11461
+ /**
11462
+ * @experimental This property is experimental and subject to change in future versions.
11463
+ */
11464
+ "placement-priority"?: DataDrivenPropertyValueSpecification<number>;
11465
+ /**
11466
+ * @experimental This property is experimental and subject to change in future versions.
11467
+ */
11468
+ "placement-group"?: DataDrivenPropertyValueSpecification<string>;
11432
11469
  };
11433
11470
  "appearances"?: Array<AppearanceSpecification>;
11434
11471
  };
@@ -11772,10 +11809,6 @@ type RasterLayerSpecification = {
11772
11809
  * @experimental This property is experimental and subject to change in future versions.
11773
11810
  */
11774
11811
  "raster-elevation-reference"?: "sea" | "ground" | ExpressionSpecification;
11775
- /**
11776
- * @experimental This property is experimental and subject to change in future versions.
11777
- */
11778
- "raster-allow-draping"?: boolean;
11779
11812
  };
11780
11813
  "appearances"?: Array<AppearanceSpecification>;
11781
11814
  };
@@ -12014,6 +12047,20 @@ type SlotLayerSpecification = {
12014
12047
  "layout"?: never;
12015
12048
  "paint"?: never;
12016
12049
  };
12050
+ type PlacementGroupLayerSpecification = {
12051
+ "id": string;
12052
+ "type": "placement-group";
12053
+ "metadata"?: unknown;
12054
+ "source"?: never;
12055
+ "source-layer"?: never;
12056
+ "slot"?: string;
12057
+ "minzoom"?: never;
12058
+ "maxzoom"?: never;
12059
+ "filter"?: never;
12060
+ "appearances"?: Array<AppearanceSpecification>;
12061
+ "layout"?: never;
12062
+ "paint"?: never;
12063
+ };
12017
12064
  type ClipLayerSpecification = {
12018
12065
  "id": string;
12019
12066
  "type": "clip";
@@ -12036,7 +12083,7 @@ type ClipLayerSpecification = {
12036
12083
  * @deprecated Use `ClipLayerSpecification['layout']` instead.
12037
12084
  */
12038
12085
  type ClipLayout = ClipLayerSpecification['layout'];
12039
- type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | BuildingLayerSpecification | RasterLayerSpecification | RasterParticleLayerSpecification | HillshadeLayerSpecification | ModelLayerSpecification | BackgroundLayerSpecification | SkyLayerSpecification | SlotLayerSpecification | ClipLayerSpecification;
12086
+ type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | BuildingLayerSpecification | RasterLayerSpecification | RasterParticleLayerSpecification | HillshadeLayerSpecification | ModelLayerSpecification | BackgroundLayerSpecification | SkyLayerSpecification | SlotLayerSpecification | PlacementGroupLayerSpecification | ClipLayerSpecification;
12040
12087
  type LayoutSpecification = UnionToIntersection<NonNullable<LayerSpecification['layout']>>;
12041
12088
  type PaintSpecification = UnionToIntersection<NonNullable<LayerSpecification['paint']>>;
12042
12089
  type LayerBaseSpecification = Pick<LayerSpecification, "slot" | "minzoom" | "maxzoom" | "filter" | "appearances">;
@@ -12105,6 +12152,10 @@ type SkyLayer = SkyLayerSpecification;
12105
12152
  * @deprecated Use `SlotLayerSpecification` instead.
12106
12153
  */
12107
12154
  type SlotLayer = SlotLayerSpecification;
12155
+ /**
12156
+ * @deprecated Use `PlacementGroupLayerSpecification` instead.
12157
+ */
12158
+ type PlacementGroupLayer = PlacementGroupLayerSpecification;
12108
12159
  /**
12109
12160
  * @deprecated Use `ClipLayerSpecification` instead.
12110
12161
  */
@@ -12989,4 +13040,4 @@ declare const visit: {
12989
13040
  };
12990
13041
 
12991
13042
  export { Color, ParsingError$1 as ParsingError, ValidationError$1 as ValidationError, export_default as composite, convertFilter, derefLayers, diffStyles as diff, expression, createFilter as featureFilter, format, styleFunction as function, _default as latest, export_default$1 as migrate, _exports as v8, validateStyle as validate, validateMapboxApiSupported, visit };
12992
- export type { AmbientLightSpecification, AnyLayer, AnyLayout, AnyPaint, AnySourceData, AppearanceSpecification, ArrayPropertySpecification, BackgroundLayer, BackgroundLayerSpecification, BackgroundLayout, BackgroundPaint, BooleanPropertySpecification, BuildingLayer, BuildingLayerSpecification, BuildingLayout, BuildingPaint, CameraFunctionSpecification, CameraSpecification, CircleLayer, CircleLayerSpecification, CircleLayout, CirclePaint, ClipLayer, ClipLayerSpecification, ClipLayout, ColorPropertySpecification, ColorSpecification, ColorThemeSpecification, CompositeFunctionSpecification, ConfigSpecification, DataDrivenPropertyValueSpecification, DirectionalLightSpecification, EnumPropertySpecification, Expression$1 as Expression, ExpressionSpecification, FeaturesetSpecification, FeaturesetsSpecification, FillExtrusionLayer, FillExtrusionLayerSpecification, FillExtrusionLayout, FillExtrusionPaint, FillLayer, FillLayerSpecification, FillLayout, FillPaint, FilterSpecification, FlatLightSpecification, FogSpecification, FormattedPropertySpecification, FormattedSpecification, FunctionSpecification, GeoJSONSourceSpecification, HeatmapLayer, HeatmapLayerSpecification, HeatmapLayout, HeatmapPaint, HillshadeLayer, HillshadeLayerSpecification, HillshadeLayout, HillshadePaint, IconsetSpecification, IconsetsSpecification, ImageSourceSpecification, ImportSpecification, IndoorSourceSpecification, IndoorSpecification, Layer, LayerBaseSpecification, LayerSpecification, LayoutSpecification, LightSpecification, LightsSpecification, LineLayer, LineLayerSpecification, LineLayout, LinePaint, ModelLayer, ModelLayerSpecification, ModelLayout, ModelLightOverridesSpecification, ModelMaterialOverrideSpecification, ModelMaterialOverridesSpecification, ModelNodeOverrideSpecification, ModelNodeOverridesSpecification, ModelPaint, ModelSourceModelSpecification, ModelSourceModelsSpecification, ModelSourceSpecification, ModelSpecification, ModelsSpecification, NumberPropertySpecification, OptionSpecification, PaintSpecification, Projection, ProjectionSpecification, PromoteIdSpecification, PropertyExpressionSpecification, PropertyFunctionStop, PropertyValueSpecification, RainSpecification, RasterArraySourceSpecification, RasterDEMSourceSpecification, RasterLayer, RasterLayerSpecification, RasterLayout, RasterPaint, RasterParticleLayer, RasterParticleLayerSpecification, RasterParticleLayout, RasterParticlePaint, RasterSourceSpecification, ResolvedImagePropertySpecification, ResolvedImageSpecification, SchemaSpecification, SelectorPropertySpecification, SelectorSpecification, SkyLayer, SkyLayerSpecification, SkyLayout, SkyPaint, SlotLayer, SlotLayerSpecification, SnowSpecification, SourceFunctionSpecification, SourceSpecification, Sources, SourcesSpecification, StringPropertySpecification, Style, StylePropertySpecification, StyleSpecification, SymbolLayer, SymbolLayerSpecification, SymbolLayout, SymbolPaint, TerrainSpecification, TerrainSpecificationUpdate, Transition, TransitionSpecification, VectorSourceSpecification, VideoSourceSpecification, ZoomAndPropertyFunctionStop };
13043
+ export type { AmbientLightSpecification, AnyLayer, AnyLayout, AnyPaint, AnySourceData, AppearanceSpecification, ArrayPropertySpecification, BackgroundLayer, BackgroundLayerSpecification, BackgroundLayout, BackgroundPaint, BooleanPropertySpecification, BuildingLayer, BuildingLayerSpecification, BuildingLayout, BuildingPaint, CameraFunctionSpecification, CameraSpecification, CircleLayer, CircleLayerSpecification, CircleLayout, CirclePaint, ClipLayer, ClipLayerSpecification, ClipLayout, ColorPropertySpecification, ColorSpecification, ColorThemeSpecification, CompositeFunctionSpecification, ConfigSpecification, DataDrivenPropertyValueSpecification, DirectionalLightSpecification, EnumPropertySpecification, Expression$1 as Expression, ExpressionSpecification, FeaturesetSpecification, FeaturesetsSpecification, FillExtrusionLayer, FillExtrusionLayerSpecification, FillExtrusionLayout, FillExtrusionPaint, FillLayer, FillLayerSpecification, FillLayout, FillPaint, FilterSpecification, FlatLightSpecification, FogSpecification, FormattedPropertySpecification, FormattedSpecification, FunctionSpecification, GeoJSONSourceSpecification, HeatmapLayer, HeatmapLayerSpecification, HeatmapLayout, HeatmapPaint, HillshadeLayer, HillshadeLayerSpecification, HillshadeLayout, HillshadePaint, IconsetSpecification, IconsetsSpecification, ImageSourceSpecification, ImportSpecification, IndoorSourceSpecification, IndoorSpecification, Layer, LayerBaseSpecification, LayerSpecification, LayoutSpecification, LightSpecification, LightsSpecification, LineLayer, LineLayerSpecification, LineLayout, LinePaint, ModelLayer, ModelLayerSpecification, ModelLayout, ModelLightOverridesSpecification, ModelMaterialOverrideSpecification, ModelMaterialOverridesSpecification, ModelNodeOverrideSpecification, ModelNodeOverridesSpecification, ModelPaint, ModelSourceModelSpecification, ModelSourceModelsSpecification, ModelSourceSpecification, ModelSpecification, ModelsSpecification, NumberPropertySpecification, OptionSpecification, PaintSpecification, PlacementGroupLayer, PlacementGroupLayerSpecification, Projection, ProjectionSpecification, PromoteIdSpecification, PropertyExpressionSpecification, PropertyFunctionStop, PropertyValueSpecification, RainSpecification, RasterArraySourceSpecification, RasterDEMSourceSpecification, RasterLayer, RasterLayerSpecification, RasterLayout, RasterPaint, RasterParticleLayer, RasterParticleLayerSpecification, RasterParticleLayout, RasterParticlePaint, RasterSourceSpecification, ResolvedImagePropertySpecification, ResolvedImageSpecification, SchemaSpecification, SelectorPropertySpecification, SelectorSpecification, SkyLayer, SkyLayerSpecification, SkyLayout, SkyPaint, SlotLayer, SlotLayerSpecification, SnowSpecification, SourceFunctionSpecification, SourceSpecification, Sources, SourcesSpecification, StringPropertySpecification, Style, StylePropertySpecification, StyleSpecification, SymbolLayer, SymbolLayerSpecification, SymbolLayout, SymbolPaint, TerrainSpecification, TerrainSpecificationUpdate, Transition, TransitionSpecification, VectorSourceSpecification, VideoSourceSpecification, ZoomAndPropertyFunctionStop };
package/dist/index.es.js CHANGED
@@ -1618,6 +1618,15 @@ var layer = {
1618
1618
  }
1619
1619
  }
1620
1620
  },
1621
+ "placement-group": {
1622
+ 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",
1623
+ "sdk-support": {
1624
+ "basic functionality": {
1625
+ }
1626
+ },
1627
+ "private": true,
1628
+ experimental: true
1629
+ },
1621
1630
  clip: {
1622
1631
  doc: "Layer that removes 3D content from map.",
1623
1632
  "sdk-support": {
@@ -1638,7 +1647,7 @@ var layer = {
1638
1647
  },
1639
1648
  source: {
1640
1649
  type: "string",
1641
- doc: "Name of a source description to be used for this layer. Required for all layer types except `background` and `slot`."
1650
+ doc: "Name of a source description to be used for this layer. Required for all layer types except `background`, `slot`, and `placement-group`."
1642
1651
  },
1643
1652
  "source-layer": {
1644
1653
  type: "string",
@@ -9514,6 +9523,60 @@ var paint_symbol = {
9514
9523
  ]
9515
9524
  },
9516
9525
  "property-type": "data-driven"
9526
+ },
9527
+ "placement-priority": {
9528
+ type: "number",
9529
+ doc: "In-group placement priority. Higher values are placed first within the symbol's placement group.",
9530
+ "default": 0,
9531
+ minimum: 0,
9532
+ transition: false,
9533
+ appearance: true,
9534
+ expression: {
9535
+ interpolated: true,
9536
+ parameters: [
9537
+ "zoom",
9538
+ "pitch",
9539
+ "feature",
9540
+ "feature-state",
9541
+ "measure-light",
9542
+ "distance-from-center"
9543
+ ]
9544
+ },
9545
+ "property-type": "data-driven",
9546
+ "sdk-support": {
9547
+ "basic functionality": {
9548
+ },
9549
+ "data-driven styling": {
9550
+ }
9551
+ },
9552
+ "private": true,
9553
+ experimental: true
9554
+ },
9555
+ "placement-group": {
9556
+ type: "string",
9557
+ 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.",
9558
+ transition: false,
9559
+ appearance: true,
9560
+ expression: {
9561
+ interpolated: false,
9562
+ parameters: [
9563
+ "zoom",
9564
+ "pitch",
9565
+ "feature",
9566
+ "feature-state",
9567
+ "measure-light",
9568
+ "distance-from-center"
9569
+ ]
9570
+ },
9571
+ "property-type": "data-driven",
9572
+ "sdk-support": {
9573
+ "basic functionality": {
9574
+ },
9575
+ "data-driven styling": {
9576
+ }
9577
+ },
9578
+ "private": true,
9579
+ experimental: true
9517
9580
  }
9518
9581
  };
9519
9582
  var paint_raster = {
@@ -9911,21 +9974,6 @@ var paint_raster = {
9911
9974
  interpolated: false
9912
9975
  },
9913
9976
  "property-type": "data-constant"
9914
- },
9915
- "raster-allow-draping": {
9916
- type: "boolean",
9917
- "default": true,
9918
- experimental: true,
9919
- doc: "Whether the raster layer is allowed to drape over terrain and globe. When disabled, the layer is rendered after all draped layers, which can change its position in the layer order. Disabling draping has a performance cost, since the terrain/globe geometry must be rendered again for each such layer.",
9920
- transition: false,
9921
- "property-type": "data-constant",
9922
- "sdk-support": {
9923
- "basic functionality": {
9924
- js: "3.28.0",
9925
- android: "11.28.0",
9926
- ios: "11.28.0"
9927
- }
9928
- }
9929
9977
  }
9930
9978
  };
9931
9979
  var paint_hillshade = {
@@ -20348,7 +20396,7 @@ function validateLayer(options) {
20348
20396
  } else {
20349
20397
  type = unbundle(parent.type);
20350
20398
  }
20351
- } else if (!(type === "background" || type === "sky" || type === "slot")) {
20399
+ } else if (!(type === "background" || type === "sky" || type === "slot" || type === "placement-group")) {
20352
20400
  if (!layer.source) {
20353
20401
  errors.push(new ValidationError(key, layer, 'missing required property "source"'));
20354
20402
  } else if (!isString(layer.source)) {