@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.
@@ -55,6 +55,8 @@ declare module "gl-matrix" {
55
55
  transformMat4<T: Vec4>(T, Vec4, Mat4): T,
56
56
  normalize<T: Vec4>(T, Vec4): T,
57
57
  dot(Vec4, Vec4): number,
58
+ min<T: Vec4>(T, Vec4, Vec4): T,
59
+ max<T: Vec4>(T, Vec4, Vec4): T,
58
60
  };
59
61
 
60
62
  declare var mat2: {
@@ -82,6 +84,7 @@ declare module "gl-matrix" {
82
84
  fromScaling<T: Mat4>(T, Vec3): T,
83
85
  fromTranslation<T: Mat4>(T, Vec3): T,
84
86
  fromQuat<T: Mat4>(T, Quat): T,
87
+ fromRotationTranslationScale<T: Mat4>(T, Quat, Vec3, Vec3): T,
85
88
  ortho<T: Mat4>(T, number, number, number, number, number, number): T,
86
89
  perspective<T: Mat4>(T, number, number, number, number): T,
87
90
  identity<T: Mat4>(T): T,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapbox/mapbox-gl-style-spec",
3
3
  "description": "a specification for mapbox gl styles",
4
- "version": "14.0.0-beta.3",
4
+ "version": "14.0.0-beta.4",
5
5
  "author": "Mapbox",
6
6
  "keywords": [
7
7
  "mapbox",
package/reference/v8.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "center": {
28
28
  "type": "array",
29
29
  "value": "number",
30
- "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).",
30
+ "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).",
31
31
  "example": [
32
32
  -73.9749,
33
33
  40.7736
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "zoom": {
37
37
  "type": "number",
38
- "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).",
38
+ "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).",
39
39
  "example": 12.5
40
40
  },
41
41
  "bearing": {
@@ -924,13 +924,13 @@
924
924
  "doc": "The data type of the image source."
925
925
  },
926
926
  "url": {
927
- "required": true,
927
+ "required": false,
928
928
  "type": "string",
929
- "doc": "URL that points to an image."
929
+ "doc": "URL that points to an image. If the URL is not specified, the image is expected to be loaded directly during runtime."
930
930
  },
931
931
  "coordinates": {
932
932
  "required": true,
933
- "doc": "Corners of image specified in longitude, latitude pairs.",
933
+ "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.",
934
934
  "type": "array",
935
935
  "length": 4,
936
936
  "value": {
@@ -1152,7 +1152,7 @@
1152
1152
  },
1153
1153
  "filter": {
1154
1154
  "type": "filter",
1155
- "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."
1155
+ "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."
1156
1156
  },
1157
1157
  "layout": {
1158
1158
  "type": "layout",
@@ -1778,7 +1778,7 @@
1778
1778
  },
1779
1779
  "symbol-sort-key": {
1780
1780
  "type": "number",
1781
- "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.",
1781
+ "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.",
1782
1782
  "sdk-support": {
1783
1783
  "basic functionality": {
1784
1784
  "js": "0.53.0",
@@ -3478,7 +3478,7 @@
3478
3478
  }
3479
3479
  },
3480
3480
  "array": {
3481
- "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.",
3481
+ "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.",
3482
3482
  "group": "Types",
3483
3483
  "sdk-support": {
3484
3484
  "basic functionality": {
@@ -3924,7 +3924,7 @@
3924
3924
  }
3925
3925
  },
3926
3926
  "properties": {
3927
- "doc": "Returns the feature properties object. Note that in some cases, it may be more efficient to use `[\"get\", \"property_name\"]` directly.",
3927
+ "doc": "Returns the feature properties object. Note that in some cases, it may be more efficient to use `[\"get\", \"property_name\"]` directly.",
3928
3928
  "group": "Feature data",
3929
3929
  "sdk-support": {
3930
3930
  "basic functionality": {
@@ -3971,7 +3971,7 @@
3971
3971
  }
3972
3972
  },
3973
3973
  "zoom": {
3974
- "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.",
3974
+ "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.",
3975
3975
  "group": "Camera",
3976
3976
  "sdk-support": {
3977
3977
  "basic functionality": {
@@ -4782,7 +4782,7 @@
4782
4782
  ],
4783
4783
  "relaxZoomRestriction": true
4784
4784
  },
4785
- "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.",
4785
+ "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.",
4786
4786
  "sdk-support": {
4787
4787
  "basic functionality": {
4788
4788
  "js": "3.0.0",
@@ -5005,7 +5005,7 @@
5005
5005
  "minimum": [-90, -90],
5006
5006
  "maximum": [90, 90],
5007
5007
  "transition": false,
5008
- "doc": "The standard parallels of the projection, denoting the desired latitude range with minimal distortion. `parallels` takes the form of [lat0, lat1]. This property is only configurable for conic projections (Albers and Lambert Conformal Conic).",
5008
+ "doc": "The standard parallels of the projection, denoting the desired latitude range with minimal distortion. `parallels` takes the form of [lat0, lat1]. This property is only configurable for conic projections (Albers and Lambert Conformal Conic).",
5009
5009
  "example": [
5010
5010
  29.5,
5011
5011
  45.5
@@ -5481,8 +5481,7 @@
5481
5481
  "parameters": [
5482
5482
  "zoom",
5483
5483
  "feature",
5484
- "feature-state",
5485
- "measure-light"
5484
+ "feature-state"
5486
5485
  ]
5487
5486
  },
5488
5487
  "property-type": "data-driven"
@@ -5516,8 +5515,7 @@
5516
5515
  "parameters": [
5517
5516
  "zoom",
5518
5517
  "feature",
5519
- "feature-state",
5520
- "measure-light"
5518
+ "feature-state"
5521
5519
  ]
5522
5520
  },
5523
5521
  "property-type": "data-driven"
@@ -5829,7 +5827,7 @@
5829
5827
  "default": 0.0,
5830
5828
  "minimum": 0.0,
5831
5829
  "maximum": 1.0,
5832
- "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.",
5830
+ "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.",
5833
5831
  "transition": false,
5834
5832
  "expression": {
5835
5833
  "interpolated": false
@@ -6158,7 +6156,7 @@
6158
6156
  },
6159
6157
  "line-gradient": {
6160
6158
  "type": "color",
6161
- "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`.",
6159
+ "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`.",
6162
6160
  "example": [
6163
6161
  "interpolate",
6164
6162
  [ "linear" ],
@@ -6779,7 +6777,7 @@
6779
6777
  1,
6780
6778
  "red"
6781
6779
  ],
6782
- "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.",
6780
+ "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.",
6783
6781
  "transition": false,
6784
6782
  "sdk-support": {
6785
6783
  "basic functionality": {
@@ -7403,7 +7401,7 @@
7403
7401
  },
7404
7402
  "raster-color": {
7405
7403
  "type": "color",
7406
- "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`.",
7404
+ "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`.",
7407
7405
  "transition": false,
7408
7406
  "sdk-support": {
7409
7407
  "basic functionality": {
@@ -7747,7 +7745,8 @@
7747
7745
  "expression": {
7748
7746
  "interpolated": true,
7749
7747
  "parameters": [
7750
- "zoom"
7748
+ "zoom",
7749
+ "measure-light"
7751
7750
  ]
7752
7751
  },
7753
7752
  "property-type": "data-constant"
@@ -7768,7 +7767,8 @@
7768
7767
  "expression": {
7769
7768
  "interpolated": true,
7770
7769
  "parameters": [
7771
- "zoom"
7770
+ "zoom",
7771
+ "measure-light"
7772
7772
  ]
7773
7773
  },
7774
7774
  "property-type": "data-constant"
@@ -7789,7 +7789,31 @@
7789
7789
  "expression": {
7790
7790
  "interpolated": true,
7791
7791
  "parameters": [
7792
- "zoom"
7792
+ "zoom",
7793
+ "measure-light"
7794
+ ]
7795
+ },
7796
+ "property-type": "data-constant"
7797
+ },
7798
+ "hillshade-emissive-strength": {
7799
+ "type": "number",
7800
+ "default": 0.0,
7801
+ "minimum": 0,
7802
+ "transition": true,
7803
+ "units": "intensity",
7804
+ "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.",
7805
+ "sdk-support": {
7806
+ "basic functionality": {
7807
+ "js": "3.0.0",
7808
+ "android": "11.0.0",
7809
+ "ios": "11.0.0"
7810
+ }
7811
+ },
7812
+ "expression": {
7813
+ "interpolated": true,
7814
+ "parameters": [
7815
+ "zoom",
7816
+ "measure-light"
7793
7817
  ]
7794
7818
  },
7795
7819
  "property-type": "data-constant"
@@ -8434,7 +8458,7 @@
8434
8458
  "default": 0.0,
8435
8459
  "minimum": 0.0,
8436
8460
  "maximum": 1.0,
8437
- "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.",
8461
+ "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.",
8438
8462
  "transition": false,
8439
8463
  "expression": {
8440
8464
  "interpolated": false
package/types.js CHANGED
@@ -216,7 +216,7 @@ export type VideoSourceSpecification = {|
216
216
 
217
217
  export type ImageSourceSpecification = {|
218
218
  "type": "image",
219
- "url": string,
219
+ "url"?: string,
220
220
  "coordinates": [[number, number], [number, number], [number, number], [number, number]]
221
221
  |}
222
222
 
@@ -552,7 +552,8 @@ export type HillshadeLayerSpecification = {|
552
552
  "hillshade-exaggeration"?: PropertyValueSpecification<number>,
553
553
  "hillshade-shadow-color"?: PropertyValueSpecification<ColorSpecification>,
554
554
  "hillshade-highlight-color"?: PropertyValueSpecification<ColorSpecification>,
555
- "hillshade-accent-color"?: PropertyValueSpecification<ColorSpecification>
555
+ "hillshade-accent-color"?: PropertyValueSpecification<ColorSpecification>,
556
+ "hillshade-emissive-strength"?: PropertyValueSpecification<number>
556
557
  |}
557
558
  |}
558
559