@mapbox/mapbox-gl-style-spec 14.11.0 → 14.12.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/composite.ts +2 -0
- package/deref.ts +5 -5
- package/diff.ts +65 -31
- package/dist/index.cjs +816 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +224 -16
- package/dist/index.es.js +816 -16
- package/dist/index.es.js.map +1 -1
- package/error/validation_error.ts +1 -3
- package/expression/compound_expression.ts +1 -1
- package/expression/definitions/assertion.ts +2 -1
- package/expression/definitions/at.ts +1 -1
- package/expression/definitions/at_interpolated.ts +1 -1
- package/expression/definitions/case.ts +3 -1
- package/expression/definitions/coalesce.ts +3 -2
- package/expression/definitions/coercion.ts +3 -1
- package/expression/definitions/collator.ts +2 -1
- package/expression/definitions/comparison.ts +15 -1
- package/expression/definitions/config.ts +4 -1
- package/expression/definitions/distance.ts +6 -4
- package/expression/definitions/format.ts +1 -1
- package/expression/definitions/index.ts +24 -2
- package/expression/definitions/index_of.ts +1 -0
- package/expression/definitions/interpolate.ts +7 -3
- package/expression/definitions/let.ts +1 -0
- package/expression/definitions/literal.ts +2 -2
- package/expression/definitions/match.ts +4 -2
- package/expression/definitions/number_format.ts +3 -4
- package/expression/definitions/slice.ts +1 -0
- package/expression/definitions/step.ts +2 -1
- package/expression/definitions/var.ts +1 -0
- package/expression/definitions/within.ts +6 -2
- package/expression/evaluation_context.ts +3 -5
- package/expression/expression.ts +3 -0
- package/expression/index.ts +20 -10
- package/expression/parsing_context.ts +1 -1
- package/expression/types/image_variant.ts +2 -2
- package/expression/types.ts +1 -0
- package/expression/values.ts +1 -3
- package/feature_filter/convert.ts +13 -6
- package/feature_filter/index.ts +17 -1
- package/format.ts +1 -0
- package/function/convert.ts +5 -1
- package/function/index.ts +28 -0
- package/group_by_layout.ts +17 -8
- package/migrate/expressions.ts +3 -3
- package/migrate/v8.ts +10 -1
- package/migrate/v9.ts +2 -1
- package/migrate.ts +2 -1
- package/package.json +1 -1
- package/read_style.ts +1 -0
- package/reference/latest.ts +1 -0
- package/reference/v8.json +425 -8
- package/test.js +2 -4
- package/types.ts +207 -1
- package/union-to-intersection.ts +1 -0
- package/util/extend.ts +2 -1
- package/util/geometry_util.ts +25 -9
- package/util/interpolate.ts +1 -1
- package/validate/validate.ts +6 -0
- package/validate/validate_array.ts +2 -0
- package/validate/validate_enum.ts +1 -0
- package/validate/validate_expression.ts +4 -0
- package/validate/validate_filter.ts +4 -2
- package/validate/validate_fog.ts +4 -1
- package/validate/validate_function.ts +7 -2
- package/validate/validate_glyphs_url.ts +1 -1
- package/validate/validate_iconset.ts +1 -0
- package/validate/validate_layer.ts +3 -2
- package/validate/validate_light.ts +4 -1
- package/validate/validate_lights.ts +7 -1
- package/validate/validate_model.ts +4 -0
- package/validate/validate_object.ts +2 -2
- package/validate/validate_projection.ts +1 -0
- package/validate/validate_property.ts +5 -1
- package/validate/validate_rain.ts +3 -0
- package/validate/validate_snow.ts +3 -0
- package/validate/validate_source.ts +9 -9
- package/validate/validate_terrain.ts +5 -1
- package/validate_mapbox_api_supported.ts +31 -20
- package/validate_style.ts +1 -0
- package/visit.ts +4 -2
package/reference/v8.json
CHANGED
|
@@ -834,6 +834,16 @@
|
|
|
834
834
|
],
|
|
835
835
|
"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."
|
|
836
836
|
},
|
|
837
|
+
"extra_bounds": {
|
|
838
|
+
"type": "array",
|
|
839
|
+
"value": {
|
|
840
|
+
"type": "array",
|
|
841
|
+
"value": "number",
|
|
842
|
+
"length": 4,
|
|
843
|
+
"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]`."
|
|
844
|
+
},
|
|
845
|
+
"doc": "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
846
|
+
},
|
|
837
847
|
"scheme": {
|
|
838
848
|
"type": "enum",
|
|
839
849
|
"values": {
|
|
@@ -913,6 +923,16 @@
|
|
|
913
923
|
],
|
|
914
924
|
"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."
|
|
915
925
|
},
|
|
926
|
+
"extra_bounds": {
|
|
927
|
+
"type": "array",
|
|
928
|
+
"value": {
|
|
929
|
+
"type": "array",
|
|
930
|
+
"value": "number",
|
|
931
|
+
"length": 4,
|
|
932
|
+
"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]`."
|
|
933
|
+
},
|
|
934
|
+
"doc": "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
935
|
+
},
|
|
916
936
|
"minzoom": {
|
|
917
937
|
"type": "number",
|
|
918
938
|
"default": 0,
|
|
@@ -994,6 +1014,16 @@
|
|
|
994
1014
|
],
|
|
995
1015
|
"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."
|
|
996
1016
|
},
|
|
1017
|
+
"extra_bounds": {
|
|
1018
|
+
"type": "array",
|
|
1019
|
+
"value": {
|
|
1020
|
+
"type": "array",
|
|
1021
|
+
"value": "number",
|
|
1022
|
+
"length": 4,
|
|
1023
|
+
"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]`."
|
|
1024
|
+
},
|
|
1025
|
+
"doc": "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
1026
|
+
},
|
|
997
1027
|
"minzoom": {
|
|
998
1028
|
"type": "number",
|
|
999
1029
|
"default": 0,
|
|
@@ -1076,6 +1106,16 @@
|
|
|
1076
1106
|
],
|
|
1077
1107
|
"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."
|
|
1078
1108
|
},
|
|
1109
|
+
"extra_bounds": {
|
|
1110
|
+
"type": "array",
|
|
1111
|
+
"value": {
|
|
1112
|
+
"type": "array",
|
|
1113
|
+
"value": "number",
|
|
1114
|
+
"length": 4,
|
|
1115
|
+
"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]`."
|
|
1116
|
+
},
|
|
1117
|
+
"doc": "An array of additional discrete geographic regions where tiles are available. When used alongside the `bounds` property, these regions act as an additional filter - Mapbox GL will only request tiles that are both within the `bounds` and any of the regions defined in `extra_bounds`. When used independently (without `bounds`), Mapbox GL will request tiles that fall within any of the regions in `extra_bounds`. This allows for more fine-grained control over tile requests, particularly when dealing with sparse data coverage."
|
|
1118
|
+
},
|
|
1079
1119
|
"minzoom": {
|
|
1080
1120
|
"type": "number",
|
|
1081
1121
|
"default": 0,
|
|
@@ -1367,6 +1407,13 @@
|
|
|
1367
1407
|
}
|
|
1368
1408
|
}
|
|
1369
1409
|
},
|
|
1410
|
+
"building": {
|
|
1411
|
+
"doc": "A procedural 3D building.",
|
|
1412
|
+
"sdk-support": {
|
|
1413
|
+
},
|
|
1414
|
+
"experimental": true,
|
|
1415
|
+
"private": true
|
|
1416
|
+
},
|
|
1370
1417
|
"raster": {
|
|
1371
1418
|
"doc": "Raster map textures such as satellite imagery.",
|
|
1372
1419
|
"sdk-support": {
|
|
@@ -1508,6 +1555,7 @@
|
|
|
1508
1555
|
"layout_circle",
|
|
1509
1556
|
"layout_heatmap",
|
|
1510
1557
|
"layout_fill-extrusion",
|
|
1558
|
+
"layout_building",
|
|
1511
1559
|
"layout_symbol",
|
|
1512
1560
|
"layout_raster",
|
|
1513
1561
|
"layout_raster-particle",
|
|
@@ -1957,6 +2005,115 @@
|
|
|
1957
2005
|
"property-type": "constant"
|
|
1958
2006
|
}
|
|
1959
2007
|
},
|
|
2008
|
+
"layout_building": {
|
|
2009
|
+
"visibility": {
|
|
2010
|
+
"type": "enum",
|
|
2011
|
+
"values": {
|
|
2012
|
+
"visible": {
|
|
2013
|
+
"doc": "The layer is shown."
|
|
2014
|
+
},
|
|
2015
|
+
"none": {
|
|
2016
|
+
"doc": "The layer is not shown."
|
|
2017
|
+
}
|
|
2018
|
+
},
|
|
2019
|
+
"default": "visible",
|
|
2020
|
+
"doc": "Whether this layer is displayed.",
|
|
2021
|
+
"sdk-support": {
|
|
2022
|
+
"basic functionality": {
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
"expression": {
|
|
2026
|
+
"interpolated": false
|
|
2027
|
+
},
|
|
2028
|
+
"property-type": "constant"
|
|
2029
|
+
},
|
|
2030
|
+
"building-roof-shape": {
|
|
2031
|
+
"type": "enum",
|
|
2032
|
+
"values": {
|
|
2033
|
+
"flat": {
|
|
2034
|
+
"doc": "Use regular extruded buildings with flat roofs."
|
|
2035
|
+
},
|
|
2036
|
+
"hipped": {
|
|
2037
|
+
"doc": "Use hipped roof for the procedurally generated buildings."
|
|
2038
|
+
},
|
|
2039
|
+
"gabled": {
|
|
2040
|
+
"doc": "Use gabled roof for the procedurally generated buildings."
|
|
2041
|
+
},
|
|
2042
|
+
"parapet": {
|
|
2043
|
+
"doc": "Use parapet roof for the procedurally generated buildings."
|
|
2044
|
+
},
|
|
2045
|
+
"mansard": {
|
|
2046
|
+
"doc": "Use mansard roof for the procedurally generated buildings."
|
|
2047
|
+
},
|
|
2048
|
+
"skillion": {
|
|
2049
|
+
"doc": "Use skillion roof for the procedurally generated buildings."
|
|
2050
|
+
},
|
|
2051
|
+
"pyramidal": {
|
|
2052
|
+
"doc": "Use pyramidal roof for the procedurally generated buildings."
|
|
2053
|
+
}
|
|
2054
|
+
},
|
|
2055
|
+
"default": "flat",
|
|
2056
|
+
"doc": "Roof type to use for the procedural buildings.",
|
|
2057
|
+
"experimental": true,
|
|
2058
|
+
"private": true,
|
|
2059
|
+
"sdk-support": {
|
|
2060
|
+
"basic functionality": {
|
|
2061
|
+
},
|
|
2062
|
+
"data-driven styling": {
|
|
2063
|
+
}
|
|
2064
|
+
},
|
|
2065
|
+
"expression": {
|
|
2066
|
+
"interpolated": false,
|
|
2067
|
+
"parameters": [
|
|
2068
|
+
"feature"
|
|
2069
|
+
]
|
|
2070
|
+
},
|
|
2071
|
+
"property-type": "data-driven"
|
|
2072
|
+
},
|
|
2073
|
+
"building-height": {
|
|
2074
|
+
"type": "number",
|
|
2075
|
+
"default": 0,
|
|
2076
|
+
"minimum": 0,
|
|
2077
|
+
"units": "meters",
|
|
2078
|
+
"doc": "The height of the procedural buildings.",
|
|
2079
|
+
"transition": true,
|
|
2080
|
+
"experimental": true,
|
|
2081
|
+
"private": true,
|
|
2082
|
+
"sdk-support": {
|
|
2083
|
+
"basic functionality": {
|
|
2084
|
+
},
|
|
2085
|
+
"data-driven styling": {
|
|
2086
|
+
}
|
|
2087
|
+
},
|
|
2088
|
+
"expression": {
|
|
2089
|
+
"interpolated": false
|
|
2090
|
+
},
|
|
2091
|
+
"property-type": "data-driven"
|
|
2092
|
+
},
|
|
2093
|
+
"building-base": {
|
|
2094
|
+
"type": "number",
|
|
2095
|
+
"default": 0,
|
|
2096
|
+
"minimum": 0,
|
|
2097
|
+
"units": "meters",
|
|
2098
|
+
"doc": "The height with which to extrude the base of this layer. Must be less than or equal to `building-height`.",
|
|
2099
|
+
"transition": true,
|
|
2100
|
+
"requires": [
|
|
2101
|
+
"building-height"
|
|
2102
|
+
],
|
|
2103
|
+
"experimental": true,
|
|
2104
|
+
"private": true,
|
|
2105
|
+
"sdk-support": {
|
|
2106
|
+
"basic functionality": {
|
|
2107
|
+
},
|
|
2108
|
+
"data-driven styling": {
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
"expression": {
|
|
2112
|
+
"interpolated": false
|
|
2113
|
+
},
|
|
2114
|
+
"property-type": "data-driven"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
1960
2117
|
"layout_line": {
|
|
1961
2118
|
"line-cap": {
|
|
1962
2119
|
"type": "enum",
|
|
@@ -3925,6 +4082,17 @@
|
|
|
3925
4082
|
"parameters": ["zoom", "feature"]
|
|
3926
4083
|
}
|
|
3927
4084
|
},
|
|
4085
|
+
"filter_building": {
|
|
4086
|
+
"type": "boolean",
|
|
4087
|
+
"doc": "Expression which determines whether or not to display a Polygon. Building layer does NOT support dynamic filtering, meaning this expression can NOT use the `[\"pitch\"]` and `[\"distance-from-center\"]` expressions to reference the current state of the view.",
|
|
4088
|
+
"default": false,
|
|
4089
|
+
"transition": false,
|
|
4090
|
+
"property-type": "data-driven",
|
|
4091
|
+
"expression": {
|
|
4092
|
+
"interpolated": false,
|
|
4093
|
+
"parameters": ["zoom", "feature"]
|
|
4094
|
+
}
|
|
4095
|
+
},
|
|
3928
4096
|
"filter_heatmap": {
|
|
3929
4097
|
"type": "boolean",
|
|
3930
4098
|
"doc": "Expression used to determine whether a point is being displayed or not. Heatmap layer does NOT support dynamic filtering, meaning this expression can NOT use the `[\"pitch\"]` and `[\"distance-from-center\"]` expressions to reference the current state of the view.",
|
|
@@ -6247,6 +6415,7 @@
|
|
|
6247
6415
|
"paint_circle",
|
|
6248
6416
|
"paint_heatmap",
|
|
6249
6417
|
"paint_fill-extrusion",
|
|
6418
|
+
"paint_building",
|
|
6250
6419
|
"paint_symbol",
|
|
6251
6420
|
"paint_raster",
|
|
6252
6421
|
"paint_raster-particle",
|
|
@@ -6454,6 +6623,30 @@
|
|
|
6454
6623
|
},
|
|
6455
6624
|
"property-type": "data-driven"
|
|
6456
6625
|
},
|
|
6626
|
+
"fill-pattern-cross-fade": {
|
|
6627
|
+
"type": "number",
|
|
6628
|
+
"property-type": "data-constant",
|
|
6629
|
+
"default": 0.0,
|
|
6630
|
+
"minimum": 0,
|
|
6631
|
+
"maximum": 1,
|
|
6632
|
+
"expression": {
|
|
6633
|
+
"interpolated": true,
|
|
6634
|
+
"parameters": [
|
|
6635
|
+
"zoom",
|
|
6636
|
+
"measure-light"
|
|
6637
|
+
]
|
|
6638
|
+
},
|
|
6639
|
+
"requires": [
|
|
6640
|
+
"line-pattern"
|
|
6641
|
+
],
|
|
6642
|
+
"sdk-support": {
|
|
6643
|
+
"basic functionality": {
|
|
6644
|
+
"js": "3.12.0"
|
|
6645
|
+
}
|
|
6646
|
+
},
|
|
6647
|
+
"doc": "Controls the transition progress between the image variants of fill-pattern. Zero means the first variant is used, one is the second, and in between they are blended together.",
|
|
6648
|
+
"transition": true
|
|
6649
|
+
},
|
|
6457
6650
|
"fill-emissive-strength": {
|
|
6458
6651
|
"type": "number",
|
|
6459
6652
|
"default": 0,
|
|
@@ -6696,6 +6889,30 @@
|
|
|
6696
6889
|
},
|
|
6697
6890
|
"property-type": "data-driven"
|
|
6698
6891
|
},
|
|
6892
|
+
"fill-extrusion-pattern-cross-fade": {
|
|
6893
|
+
"type": "number",
|
|
6894
|
+
"property-type": "data-constant",
|
|
6895
|
+
"default": 0.0,
|
|
6896
|
+
"minimum": 0,
|
|
6897
|
+
"maximum": 1,
|
|
6898
|
+
"expression": {
|
|
6899
|
+
"interpolated": true,
|
|
6900
|
+
"parameters": [
|
|
6901
|
+
"zoom",
|
|
6902
|
+
"measure-light"
|
|
6903
|
+
]
|
|
6904
|
+
},
|
|
6905
|
+
"requires": [
|
|
6906
|
+
"line-pattern"
|
|
6907
|
+
],
|
|
6908
|
+
"sdk-support": {
|
|
6909
|
+
"basic functionality": {
|
|
6910
|
+
"js": "3.12.0"
|
|
6911
|
+
}
|
|
6912
|
+
},
|
|
6913
|
+
"doc": "Controls the transition progress between the image variants of fill-extrusion-pattern. Zero means the first variant is used, one is the second, and in between they are blended together.",
|
|
6914
|
+
"transition": true
|
|
6915
|
+
},
|
|
6699
6916
|
"fill-extrusion-height": {
|
|
6700
6917
|
"type": "number",
|
|
6701
6918
|
"default": 0,
|
|
@@ -7235,6 +7452,189 @@
|
|
|
7235
7452
|
"property-type": "data-constant"
|
|
7236
7453
|
}
|
|
7237
7454
|
},
|
|
7455
|
+
"paint_building": {
|
|
7456
|
+
"building-opacity": {
|
|
7457
|
+
"type": "number",
|
|
7458
|
+
"default": 1,
|
|
7459
|
+
"minimum": 0,
|
|
7460
|
+
"maximum": 1,
|
|
7461
|
+
"doc": "The opacity of the entire procedural buildings layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",
|
|
7462
|
+
"transition": true,
|
|
7463
|
+
"experimental": true,
|
|
7464
|
+
"private": true,
|
|
7465
|
+
"sdk-support": {
|
|
7466
|
+
"basic functionality": {
|
|
7467
|
+
}
|
|
7468
|
+
},
|
|
7469
|
+
"expression": {
|
|
7470
|
+
"interpolated": true,
|
|
7471
|
+
"parameters": [
|
|
7472
|
+
"zoom"
|
|
7473
|
+
]
|
|
7474
|
+
},
|
|
7475
|
+
"property-type": "data-constant"
|
|
7476
|
+
},
|
|
7477
|
+
"building-ambient-occlusion-wall-intensity": {
|
|
7478
|
+
"property-type": "data-constant",
|
|
7479
|
+
"type": "number",
|
|
7480
|
+
"default": 0,
|
|
7481
|
+
"minimum": 0,
|
|
7482
|
+
"maximum": 1,
|
|
7483
|
+
"experimental": true,
|
|
7484
|
+
"private": true,
|
|
7485
|
+
"expression": {
|
|
7486
|
+
"interpolated": true,
|
|
7487
|
+
"parameters": [
|
|
7488
|
+
"zoom"
|
|
7489
|
+
]
|
|
7490
|
+
},
|
|
7491
|
+
"transition": true,
|
|
7492
|
+
"doc": "Controls the intensity of shading concave angles between walls and building elements, such as facades and rooftop.",
|
|
7493
|
+
"sdk-support": {
|
|
7494
|
+
"basic functionality": {
|
|
7495
|
+
}
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7498
|
+
"building-ambient-occlusion-ground-intensity": {
|
|
7499
|
+
"property-type": "data-constant",
|
|
7500
|
+
"type": "number",
|
|
7501
|
+
"default": 0,
|
|
7502
|
+
"minimum": 0,
|
|
7503
|
+
"maximum": 1,
|
|
7504
|
+
"experimental": true,
|
|
7505
|
+
"private": true,
|
|
7506
|
+
"expression": {
|
|
7507
|
+
"interpolated": true,
|
|
7508
|
+
"parameters": [
|
|
7509
|
+
"zoom"
|
|
7510
|
+
]
|
|
7511
|
+
},
|
|
7512
|
+
"transition": true,
|
|
7513
|
+
"doc": "Controls the intensity of shading near ground",
|
|
7514
|
+
"sdk-support": {
|
|
7515
|
+
"basic functionality": {
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
},
|
|
7519
|
+
"building-ambient-occlusion-ground-radius": {
|
|
7520
|
+
"property-type": "data-constant",
|
|
7521
|
+
"type": "number",
|
|
7522
|
+
"experimental": true,
|
|
7523
|
+
"private": true,
|
|
7524
|
+
"default": 3.0,
|
|
7525
|
+
"minimum": 0,
|
|
7526
|
+
"expression": {
|
|
7527
|
+
"interpolated": true,
|
|
7528
|
+
"parameters": [
|
|
7529
|
+
"zoom"
|
|
7530
|
+
]
|
|
7531
|
+
},
|
|
7532
|
+
"transition": true,
|
|
7533
|
+
"doc": "The extent of the ambient occlusion effect on the ground beneath the procedural buildings in meters.",
|
|
7534
|
+
"sdk-support": {
|
|
7535
|
+
"basic functionality": {
|
|
7536
|
+
}
|
|
7537
|
+
}
|
|
7538
|
+
},
|
|
7539
|
+
"building-ambient-occlusion-ground-attenuation": {
|
|
7540
|
+
"property-type": "data-constant",
|
|
7541
|
+
"type": "number",
|
|
7542
|
+
"experimental": true,
|
|
7543
|
+
"private": true,
|
|
7544
|
+
"default": 0.69,
|
|
7545
|
+
"minimum": 0.0,
|
|
7546
|
+
"maximum": 1.0,
|
|
7547
|
+
"doc": "Provides a control to further fine-tune the look of the ambient occlusion on the ground beneath the procedural buildings. Lower values give the effect a more solid look while higher values make it smoother.",
|
|
7548
|
+
"transition": true,
|
|
7549
|
+
"expression": {
|
|
7550
|
+
"interpolated": true,
|
|
7551
|
+
"parameters": [
|
|
7552
|
+
"zoom"
|
|
7553
|
+
]
|
|
7554
|
+
},
|
|
7555
|
+
"sdk-support": {
|
|
7556
|
+
"basic functionality": {
|
|
7557
|
+
}
|
|
7558
|
+
}
|
|
7559
|
+
},
|
|
7560
|
+
"building-vertical-scale": {
|
|
7561
|
+
"property-type": "data-constant",
|
|
7562
|
+
"type": "number",
|
|
7563
|
+
"experimental": true,
|
|
7564
|
+
"private": true,
|
|
7565
|
+
"default": 1.0,
|
|
7566
|
+
"minimum": 0.0,
|
|
7567
|
+
"doc": "A global multiplier that can be used to scale base and height of the procedural buildings.",
|
|
7568
|
+
"transition": true,
|
|
7569
|
+
"expression": {
|
|
7570
|
+
"interpolated": true,
|
|
7571
|
+
"parameters": [
|
|
7572
|
+
"zoom"
|
|
7573
|
+
]
|
|
7574
|
+
},
|
|
7575
|
+
"sdk-support": {
|
|
7576
|
+
"basic functionality": {
|
|
7577
|
+
}
|
|
7578
|
+
}
|
|
7579
|
+
},
|
|
7580
|
+
"building-cast-shadows": {
|
|
7581
|
+
"type": "boolean",
|
|
7582
|
+
"default": true,
|
|
7583
|
+
"doc": "Enable/Disable shadow casting for this layer",
|
|
7584
|
+
"transition": false,
|
|
7585
|
+
"experimental": true,
|
|
7586
|
+
"private": true,
|
|
7587
|
+
"sdk-support": {
|
|
7588
|
+
"basic functionality": {
|
|
7589
|
+
}
|
|
7590
|
+
},
|
|
7591
|
+
"property-type": "data-constant"
|
|
7592
|
+
},
|
|
7593
|
+
"building-color": {
|
|
7594
|
+
"type": "color",
|
|
7595
|
+
"default": "rgba(193, 154, 127, 1)",
|
|
7596
|
+
"doc": "Color buildings. This can be styled using different building parts (e.g. windows, wall, roof, etc.). This won't be used if `building-roof-shape` has a value `flat`.",
|
|
7597
|
+
"experimental": true,
|
|
7598
|
+
"private": true,
|
|
7599
|
+
"sdk-support": {
|
|
7600
|
+
"basic functionality": {
|
|
7601
|
+
},
|
|
7602
|
+
"data-driven styling": {
|
|
7603
|
+
}
|
|
7604
|
+
},
|
|
7605
|
+
"expression": {
|
|
7606
|
+
"interpolated": true,
|
|
7607
|
+
"parameters": [
|
|
7608
|
+
"feature",
|
|
7609
|
+
"feature-state"
|
|
7610
|
+
]
|
|
7611
|
+
},
|
|
7612
|
+
"property-type": "data-driven"
|
|
7613
|
+
},
|
|
7614
|
+
"building-emissive-strength": {
|
|
7615
|
+
"type": "number",
|
|
7616
|
+
"default": 0,
|
|
7617
|
+
"minimum": 0,
|
|
7618
|
+
"doc": "Controls the intensity of light emitted on the source features.",
|
|
7619
|
+
"experimental": true,
|
|
7620
|
+
"private": true,
|
|
7621
|
+
"sdk-support": {
|
|
7622
|
+
"basic functionality": {
|
|
7623
|
+
},
|
|
7624
|
+
"data-driven styling": {
|
|
7625
|
+
}
|
|
7626
|
+
},
|
|
7627
|
+
"expression": {
|
|
7628
|
+
"interpolated": true,
|
|
7629
|
+
"parameters": [
|
|
7630
|
+
"feature",
|
|
7631
|
+
"feature-state",
|
|
7632
|
+
"measure-light"
|
|
7633
|
+
]
|
|
7634
|
+
},
|
|
7635
|
+
"property-type": "data-driven"
|
|
7636
|
+
}
|
|
7637
|
+
},
|
|
7238
7638
|
"paint_line": {
|
|
7239
7639
|
"line-opacity": {
|
|
7240
7640
|
"type": "number",
|
|
@@ -7531,6 +7931,30 @@
|
|
|
7531
7931
|
},
|
|
7532
7932
|
"property-type": "data-driven"
|
|
7533
7933
|
},
|
|
7934
|
+
"line-pattern-cross-fade": {
|
|
7935
|
+
"type": "number",
|
|
7936
|
+
"property-type": "data-constant",
|
|
7937
|
+
"default": 0.0,
|
|
7938
|
+
"minimum": 0,
|
|
7939
|
+
"maximum": 1,
|
|
7940
|
+
"expression": {
|
|
7941
|
+
"interpolated": true,
|
|
7942
|
+
"parameters": [
|
|
7943
|
+
"zoom",
|
|
7944
|
+
"measure-light"
|
|
7945
|
+
]
|
|
7946
|
+
},
|
|
7947
|
+
"requires": [
|
|
7948
|
+
"line-pattern"
|
|
7949
|
+
],
|
|
7950
|
+
"sdk-support": {
|
|
7951
|
+
"basic functionality": {
|
|
7952
|
+
"js": "3.12.0"
|
|
7953
|
+
}
|
|
7954
|
+
},
|
|
7955
|
+
"doc": "Controls the transition progress between the image variants of line-pattern. Zero means the first variant is used, one is the second, and in between they are blended together.",
|
|
7956
|
+
"transition": true
|
|
7957
|
+
},
|
|
7534
7958
|
"line-gradient": {
|
|
7535
7959
|
"type": "color",
|
|
7536
7960
|
"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`.",
|
|
@@ -8585,7 +9009,7 @@
|
|
|
8585
9009
|
},
|
|
8586
9010
|
"icon-image-cross-fade": {
|
|
8587
9011
|
"type": "number",
|
|
8588
|
-
"property-type": "data-
|
|
9012
|
+
"property-type": "data-constant",
|
|
8589
9013
|
"default": 0.0,
|
|
8590
9014
|
"minimum": 0,
|
|
8591
9015
|
"maximum": 1,
|
|
@@ -8593,8 +9017,6 @@
|
|
|
8593
9017
|
"interpolated": true,
|
|
8594
9018
|
"parameters": [
|
|
8595
9019
|
"zoom",
|
|
8596
|
-
"feature",
|
|
8597
|
-
"feature-state",
|
|
8598
9020
|
"measure-light"
|
|
8599
9021
|
]
|
|
8600
9022
|
},
|
|
@@ -8606,11 +9028,6 @@
|
|
|
8606
9028
|
"js": "3.0.0",
|
|
8607
9029
|
"android": "11.0.0",
|
|
8608
9030
|
"ios": "11.0.0"
|
|
8609
|
-
},
|
|
8610
|
-
"data-driven styling": {
|
|
8611
|
-
"js": "3.0.0",
|
|
8612
|
-
"android": "11.0.0",
|
|
8613
|
-
"ios": "11.0.0"
|
|
8614
9031
|
}
|
|
8615
9032
|
},
|
|
8616
9033
|
"doc": "Controls the transition progress between the image variants of icon-image. Zero means the first variant is used, one is the second, and in between they are blended together.",
|
package/test.js
CHANGED
|
@@ -4,13 +4,11 @@ import fs from 'fs';
|
|
|
4
4
|
import {execSync} from 'child_process';
|
|
5
5
|
import {createRequire} from 'module';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
const packageJson = JSON.parse(fs.readFileSync('./package.json'));
|
|
7
|
+
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
|
|
9
8
|
|
|
10
|
-
process.on('unhandledRejection', (error) => {
|
|
9
|
+
process.on('unhandledRejection', (/** @type {Error} */ error) => {
|
|
11
10
|
// don't log `error` directly, because errors from child_process.execSync
|
|
12
11
|
// contain an (undocumented) `envPairs` with environment variable values
|
|
13
|
-
// @ts-expect-error - TS2339 - Property 'message' does not exist on type 'unknown'.
|
|
14
12
|
console.log(error.message || 'unhandledRejection');
|
|
15
13
|
process.exit(1);
|
|
16
14
|
});
|