@mapbox/mapbox-gl-style-spec 14.0.0-beta.3 → 14.0.0-beta.4

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
@@ -32,7 +32,7 @@
32
32
  center: {
33
33
  type: "array",
34
34
  value: "number",
35
- doc: "Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",
35
+ doc: "Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",
36
36
  example: [
37
37
  -73.9749,
38
38
  40.7736
@@ -40,7 +40,7 @@
40
40
  },
41
41
  zoom: {
42
42
  type: "number",
43
- doc: "Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",
43
+ doc: "Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",
44
44
  example: 12.5
45
45
  },
46
46
  bearing: {
@@ -883,13 +883,13 @@
883
883
  doc: "The data type of the image source."
884
884
  },
885
885
  url: {
886
- required: true,
886
+ required: false,
887
887
  type: "string",
888
- doc: "URL that points to an image."
888
+ doc: "URL that points to an image. If the URL is not specified, the image is expected to be loaded directly during runtime."
889
889
  },
890
890
  coordinates: {
891
891
  required: true,
892
- doc: "Corners of image specified in longitude, latitude pairs.",
892
+ doc: "Corners of image specified in longitude, latitude pairs. Note: When using globe projection, the image will be centered at the North or South Pole in the respective hemisphere if the average latitude value exceeds 85 degrees or falls below -85 degrees.",
893
893
  type: "array",
894
894
  length: 4,
895
895
  value: {
@@ -1111,7 +1111,7 @@
1111
1111
  },
1112
1112
  filter: {
1113
1113
  type: "filter",
1114
- doc: "An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `[\"feature-state\", ...]` expression is not supported in filter expressions. The `[\"pitch\"]` and `[\"distance-from-center\"]` expressions are supported only for filter expressions on the symbol layer."
1114
+ doc: "An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `[\"feature-state\", ...]` expression is not supported in filter expressions. The `[\"pitch\"]` and `[\"distance-from-center\"]` expressions are supported only for filter expressions on the symbol layer."
1115
1115
  },
1116
1116
  layout: {
1117
1117
  type: "layout",
@@ -1680,7 +1680,7 @@
1680
1680
  },
1681
1681
  "symbol-sort-key": {
1682
1682
  type: "number",
1683
- doc: "Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.",
1683
+ doc: "Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.",
1684
1684
  "sdk-support": {
1685
1685
  "basic functionality": {
1686
1686
  js: "0.53.0",
@@ -3324,7 +3324,7 @@
3324
3324
  }
3325
3325
  },
3326
3326
  array: {
3327
- doc: "Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",
3327
+ doc: "Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",
3328
3328
  group: "Types",
3329
3329
  "sdk-support": {
3330
3330
  "basic functionality": {
@@ -3770,7 +3770,7 @@
3770
3770
  }
3771
3771
  },
3772
3772
  properties: {
3773
- doc: "Returns the feature properties object. Note that in some cases, it may be more efficient to use `[\"get\", \"property_name\"]` directly.",
3773
+ doc: "Returns the feature properties object. Note that in some cases, it may be more efficient to use `[\"get\", \"property_name\"]` directly.",
3774
3774
  group: "Feature data",
3775
3775
  "sdk-support": {
3776
3776
  "basic functionality": {
@@ -3817,7 +3817,7 @@
3817
3817
  }
3818
3818
  },
3819
3819
  zoom: {
3820
- doc: "Returns the current zoom level. Note that in style layout and paint properties, [\"zoom\"] may only appear as the input to a top-level \"step\" or \"interpolate\" expression.",
3820
+ doc: "Returns the current zoom level. Note that in style layout and paint properties, [\"zoom\"] may only appear as the input to a top-level \"step\" or \"interpolate\" expression.",
3821
3821
  group: "Camera",
3822
3822
  "sdk-support": {
3823
3823
  "basic functionality": {
@@ -4627,7 +4627,7 @@
4627
4627
  ],
4628
4628
  relaxZoomRestriction: true
4629
4629
  },
4630
- doc: "Specify the vertical range, measured in meters, over which the fog should gradually fade out. When both parameters are set to zero, the fog will be rendered without any vertical constraints.",
4630
+ doc: "An array of two number values, specifying the vertical range, measured in meters, over which the fog should gradually fade out. When both parameters are set to zero, the fog will be rendered without any vertical constraints.",
4631
4631
  "sdk-support": {
4632
4632
  "basic functionality": {
4633
4633
  js: "3.0.0",
@@ -5482,7 +5482,7 @@
5482
5482
  },
5483
5483
  "line-gradient": {
5484
5484
  type: "color",
5485
- doc: "A gradient used to color a line feature at various distances along its length. Defined using a `step` or `interpolate` expression which outputs a color for each corresponding `line-progress` input value. `line-progress` is a percentage of the line feature's total length as measured on the webmercator projected coordinate plane (a `number` between `0` and `1`). Can only be used with GeoJSON sources that specify `\"lineMetrics\": true`.",
5485
+ doc: "A gradient used to color a line feature at various distances along its length. Defined using a `step` or `interpolate` expression which outputs a color for each corresponding `line-progress` input value. `line-progress` is a percentage of the line feature's total length as measured on the webmercator projected coordinate plane (a `number` between `0` and `1`). Can only be used with GeoJSON sources that specify `\"lineMetrics\": true`.",
5486
5486
  example: [
5487
5487
  "interpolate",
5488
5488
  [
@@ -6117,7 +6117,7 @@
6117
6117
  1,
6118
6118
  "red"
6119
6119
  ],
6120
- doc: "Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `[\"heatmap-density\"]` as input.",
6120
+ doc: "Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `[\"heatmap-density\"]` as input.",
6121
6121
  transition: false,
6122
6122
  "sdk-support": {
6123
6123
  "basic functionality": {
@@ -6742,7 +6742,7 @@
6742
6742
  },
6743
6743
  "raster-color": {
6744
6744
  type: "color",
6745
- doc: "Defines a color map by which to colorize a raster layer, parameterized by the `[\"raster-value\"]` expression and evaluated at 1024 uniformly spaced steps over the range specified by `raster-color-range`.",
6745
+ doc: "Defines a color map by which to colorize a raster layer, parameterized by the `[\"raster-value\"]` expression and evaluated at 256 uniformly spaced steps over the range specified by `raster-color-range`.",
6746
6746
  transition: false,
6747
6747
  "sdk-support": {
6748
6748
  "basic functionality": {
@@ -7087,7 +7087,8 @@
7087
7087
  expression: {
7088
7088
  interpolated: true,
7089
7089
  parameters: [
7090
- "zoom"
7090
+ "zoom",
7091
+ "measure-light"
7091
7092
  ]
7092
7093
  },
7093
7094
  "property-type": "data-constant"
@@ -7108,7 +7109,8 @@
7108
7109
  expression: {
7109
7110
  interpolated: true,
7110
7111
  parameters: [
7111
- "zoom"
7112
+ "zoom",
7113
+ "measure-light"
7112
7114
  ]
7113
7115
  },
7114
7116
  "property-type": "data-constant"
@@ -7129,7 +7131,31 @@
7129
7131
  expression: {
7130
7132
  interpolated: true,
7131
7133
  parameters: [
7132
- "zoom"
7134
+ "zoom",
7135
+ "measure-light"
7136
+ ]
7137
+ },
7138
+ "property-type": "data-constant"
7139
+ },
7140
+ "hillshade-emissive-strength": {
7141
+ type: "number",
7142
+ "default": 0,
7143
+ minimum: 0,
7144
+ transition: true,
7145
+ units: "intensity",
7146
+ doc: "Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when `lights` root property is defined.",
7147
+ "sdk-support": {
7148
+ "basic functionality": {
7149
+ js: "3.0.0",
7150
+ android: "11.0.0",
7151
+ ios: "11.0.0"
7152
+ }
7153
+ },
7154
+ expression: {
7155
+ interpolated: true,
7156
+ parameters: [
7157
+ "zoom",
7158
+ "measure-light"
7133
7159
  ]
7134
7160
  },
7135
7161
  "property-type": "data-constant"
@@ -7832,7 +7858,7 @@
7832
7858
  "default": 0,
7833
7859
  minimum: 0,
7834
7860
  maximum: 1,
7835
- doc: "This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.",
7861
+ doc: "This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.",
7836
7862
  transition: false,
7837
7863
  expression: {
7838
7864
  interpolated: false
@@ -8291,8 +8317,7 @@
8291
8317
  parameters: [
8292
8318
  "zoom",
8293
8319
  "feature",
8294
- "feature-state",
8295
- "measure-light"
8320
+ "feature-state"
8296
8321
  ]
8297
8322
  },
8298
8323
  "property-type": "data-driven"
@@ -8326,8 +8351,7 @@
8326
8351
  parameters: [
8327
8352
  "zoom",
8328
8353
  "feature",
8329
- "feature-state",
8330
- "measure-light"
8354
+ "feature-state"
8331
8355
  ]
8332
8356
  },
8333
8357
  "property-type": "data-driven"
@@ -8639,7 +8663,7 @@
8639
8663
  "default": 0,
8640
8664
  minimum: 0,
8641
8665
  maximum: 1,
8642
- doc: "This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.",
8666
+ doc: "This parameter defines the range for the fade-out effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.",
8643
8667
  transition: false,
8644
8668
  expression: {
8645
8669
  interpolated: false