@mapbox/mapbox-gl-style-spec 14.0.0-rc.2 → 14.1.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/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-rc.2",
4
+ "version": "14.1.0-beta.1",
5
5
  "author": "Mapbox",
6
6
  "keywords": [
7
7
  "mapbox",
package/reference/v8.json CHANGED
@@ -87,7 +87,15 @@
87
87
  "shadow-intensity": 0.2
88
88
  }
89
89
  }
90
- ]
90
+ ],
91
+ "sdk-support": {
92
+ "basic functionality": {
93
+ "js": "3.0.0",
94
+ "android": "11.0.0",
95
+ "ios": "11.0.0",
96
+ "macos": "11.0.0"
97
+ }
98
+ }
91
99
  },
92
100
  "terrain": {
93
101
  "type": "terrain",
@@ -310,7 +318,7 @@
310
318
  }
311
319
  },
312
320
  "directional": {
313
- "doc": "A light that has a direction and is located at infinite, so its rays are parallel. Simulates the sun light and it can cast shadows",
321
+ "doc": "A light that has a direction and is located at infinite distance, so its rays are parallel. It simulates the sun light and can cast shadows.",
314
322
  "sdk-support": {
315
323
  "basic functionality": {
316
324
  "js": "3.0.0",
@@ -320,7 +328,7 @@
320
328
  }
321
329
  },
322
330
  "flat": {
323
- "doc": "A global directional light source which is only applied on 3D layers and hillshade layers. Using this type disables other light sources.",
331
+ "doc": "A global directional light source which is only applied on 3D and hillshade layers. Using this type disables other light sources.",
324
332
  "sdk-support": {
325
333
  "basic functionality": {
326
334
  "js": "3.0.0",
@@ -603,6 +611,7 @@
603
611
  "source_vector",
604
612
  "source_raster",
605
613
  "source_raster_dem",
614
+ "source_raster_array",
606
615
  "source_geojson",
607
616
  "source_video",
608
617
  "source_image",
@@ -849,6 +858,67 @@
849
858
  "doc": "Other keys to configure the data source."
850
859
  }
851
860
  },
861
+ "source_raster_array": {
862
+ "type": {
863
+ "required": true,
864
+ "type": "enum",
865
+ "values": {
866
+ "raster-array": {
867
+ "doc": "A raster array source"
868
+ }
869
+ },
870
+ "doc": "The type of the source."
871
+ },
872
+ "url": {
873
+ "type": "string",
874
+ "doc": "A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<Tileset ID>`."
875
+ },
876
+ "tiles": {
877
+ "type": "array",
878
+ "value": "string",
879
+ "doc": "An array of one or more tile source URLs, as in the TileJSON spec."
880
+ },
881
+ "bounds": {
882
+ "type": "array",
883
+ "value": "number",
884
+ "length": 4,
885
+ "default": [
886
+ -180,
887
+ -85.051129,
888
+ 180,
889
+ 85.051129
890
+ ],
891
+ "doc": "An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."
892
+ },
893
+ "minzoom": {
894
+ "type": "number",
895
+ "default": 0,
896
+ "doc": "Minimum zoom level for which tiles are available, as in the TileJSON spec."
897
+ },
898
+ "maxzoom": {
899
+ "type": "number",
900
+ "default": 22,
901
+ "doc": "Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."
902
+ },
903
+ "tileSize": {
904
+ "type": "number",
905
+ "default": 512,
906
+ "units": "pixels",
907
+ "doc": "The minimum visual size to display tiles for this layer. Only configurable for raster layers."
908
+ },
909
+ "attribution": {
910
+ "type": "string",
911
+ "doc": "Contains an attribution to be displayed when the map is shown to a user."
912
+ },
913
+ "rasterLayers": {
914
+ "type": "*",
915
+ "doc": "Contains the description of the raster data layers and the bands contained within the tiles."
916
+ },
917
+ "*": {
918
+ "type": "*",
919
+ "doc": "Other keys to configure the data source."
920
+ }
921
+ },
852
922
  "source_geojson": {
853
923
  "type": {
854
924
  "required": true,
@@ -1882,7 +1952,7 @@
1882
1952
  "symbol-z-elevate": {
1883
1953
  "type": "boolean",
1884
1954
  "default": false,
1885
- "doc": "Position symbol on buildings (both fill extrusions and models) roof tops. In order to have minimal impact on performance, this is supported only when `fill-extrusion-height` is not zoom-dependent and not edited after initial bucket creation. For fading in buildings when zooming in, fill-extrusion-vertical-scale should be used and symbols would raise with building roofs. Symbols are sorted by elevation, except in case when `viewport-y` sorting or `symbol-sort-key` are applied.",
1955
+ "doc": "Position symbol on buildings (both fill extrusions and models) rooftops. In order to have minimal impact on performance, this is supported only when `fill-extrusion-height` is not zoom-dependent and remains unchanged. For fading in buildings when zooming in, fill-extrusion-vertical-scale should be used and symbols would raise with building rooftops. Symbols are sorted by elevation, except in cases when `viewport-y` sorting or `symbol-sort-key` are applied.",
1886
1956
  "sdk-support": {
1887
1957
  "basic functionality": {
1888
1958
  "js": "3.0.0",
@@ -5632,7 +5702,7 @@
5632
5702
  ]
5633
5703
  },
5634
5704
  "transition": true,
5635
- "doc": "Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings. This property works only with legacy light. When 3D light is enabled `fill-extrusion-ambient-occlusion-wall-radius` and `fill-extrusion-ambient-occlusion-ground-radius` are used instead.",
5705
+ "doc": "Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings. This property works only with legacy light. When 3D lights are enabled `fill-extrusion-ambient-occlusion-wall-radius` and `fill-extrusion-ambient-occlusion-ground-radius` are used instead.",
5636
5706
  "requires": [
5637
5707
  "fill-extrusion-edge-radius",
5638
5708
  {
@@ -5944,7 +6014,33 @@
5944
6014
  }
5945
6015
  },
5946
6016
  "property-type": "data-constant"
5947
- }
6017
+ },
6018
+ "fill-extrusion-emissive-strength": {
6019
+ "type": "number",
6020
+ "default": 0,
6021
+ "minimum": 0,
6022
+ "transition": true,
6023
+ "units": "intensity",
6024
+ "doc": "Controls the intensity of light emitted on the source features.",
6025
+ "requires": [
6026
+ "lights"
6027
+ ],
6028
+ "sdk-support": {
6029
+ "basic functionality": {
6030
+ "js": "3.0.0",
6031
+ "android": "11.0.0",
6032
+ "ios": "11.0.0"
6033
+ }
6034
+ },
6035
+ "expression": {
6036
+ "interpolated": true,
6037
+ "parameters": [
6038
+ "zoom",
6039
+ "measure-light"
6040
+ ]
6041
+ },
6042
+ "property-type": "data-constant"
6043
+ }
5948
6044
  },
5949
6045
  "paint_line": {
5950
6046
  "line-opacity": {
@@ -7768,6 +7864,66 @@
7768
7864
  ]
7769
7865
  },
7770
7866
  "property-type": "data-constant"
7867
+ },
7868
+ "raster-emissive-strength": {
7869
+ "type": "number",
7870
+ "default": 0,
7871
+ "minimum": 0,
7872
+ "transition": true,
7873
+ "units": "intensity",
7874
+ "doc": "Controls the intensity of light emitted on the source features.",
7875
+ "requires": [
7876
+ "lights"
7877
+ ],
7878
+ "sdk-support": {
7879
+ "basic functionality": {
7880
+ "js": "3.0.0",
7881
+ "android": "11.0.0",
7882
+ "ios": "11.0.0"
7883
+ }
7884
+ },
7885
+ "expression": {
7886
+ "interpolated": true,
7887
+ "parameters": [
7888
+ "zoom",
7889
+ "measure-light"
7890
+ ]
7891
+ },
7892
+ "property-type": "data-constant"
7893
+ },
7894
+ "raster-array-band": {
7895
+ "type": "string",
7896
+ "required": false,
7897
+ "property-type": "data-constant",
7898
+ "transition": false,
7899
+ "doc": "Displayed band of raster array source layer",
7900
+ "example": "band-name",
7901
+ "sdk-support": {
7902
+ "basic functionality": {
7903
+ "js": "3.1.0",
7904
+ "android": "11.1.0",
7905
+ "ios": "11.1.0"
7906
+ }
7907
+ }
7908
+ },
7909
+ "raster-elevation": {
7910
+ "type": "number",
7911
+ "doc": "Specifies an uniform elevation from the ground, in meters. Only supported with image sources.",
7912
+ "default": 0,
7913
+ "minimum": 0,
7914
+ "transition": true,
7915
+ "sdk-support": {
7916
+ "basic functionality": {
7917
+ "js": "3.1.0"
7918
+ }
7919
+ },
7920
+ "expression": {
7921
+ "interpolated": true,
7922
+ "parameters": [
7923
+ "zoom"
7924
+ ]
7925
+ },
7926
+ "property-type": "data-constant"
7771
7927
  }
7772
7928
  },
7773
7929
  "paint_hillshade": {
@@ -7917,7 +8073,10 @@
7917
8073
  "minimum": 0,
7918
8074
  "transition": true,
7919
8075
  "units": "intensity",
7920
- "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.",
8076
+ "doc": "Controls the intensity of light emitted on the source features.",
8077
+ "requires": [
8078
+ "lights"
8079
+ ],
7921
8080
  "sdk-support": {
7922
8081
  "basic functionality": {
7923
8082
  "js": "3.0.0",
package/types.js CHANGED
@@ -501,7 +501,8 @@ export type FillExtrusionLayerSpecification = {|
501
501
  "fill-extrusion-flood-light-ground-attenuation"?: PropertyValueSpecification<number>,
502
502
  "fill-extrusion-vertical-scale"?: PropertyValueSpecification<number>,
503
503
  "fill-extrusion-rounded-roof"?: PropertyValueSpecification<boolean>,
504
- "fill-extrusion-cutoff-fade-range"?: ExpressionSpecification
504
+ "fill-extrusion-cutoff-fade-range"?: ExpressionSpecification,
505
+ "fill-extrusion-emissive-strength"?: PropertyValueSpecification<number>
505
506
  |}
506
507
  |}
507
508
 
@@ -529,7 +530,10 @@ export type RasterLayerSpecification = {|
529
530
  "raster-saturation"?: PropertyValueSpecification<number>,
530
531
  "raster-contrast"?: PropertyValueSpecification<number>,
531
532
  "raster-resampling"?: PropertyValueSpecification<"linear" | "nearest">,
532
- "raster-fade-duration"?: PropertyValueSpecification<number>
533
+ "raster-fade-duration"?: PropertyValueSpecification<number>,
534
+ "raster-emissive-strength"?: PropertyValueSpecification<number>,
535
+ "raster-array-band"?: string,
536
+ "raster-elevation"?: PropertyValueSpecification<number>
533
537
  |}
534
538
  |}
535
539