@mapbox/mapbox-gl-style-spec 14.11.0-beta.2 → 14.12.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/diff.ts +47 -11
- package/dist/index.cjs +687 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +186 -13
- package/dist/index.es.js +687 -30
- package/dist/index.es.js.map +1 -1
- package/expression/compound_expression.ts +1 -1
- package/expression/definitions/coalesce.ts +2 -2
- package/expression/definitions/config.ts +1 -1
- package/expression/definitions/image.ts +1 -11
- package/expression/definitions/index.ts +3 -2
- package/expression/definitions/interpolate.ts +3 -3
- package/expression/definitions/match.ts +1 -1
- package/expression/definitions/step.ts +1 -1
- package/expression/evaluation_context.ts +3 -5
- package/expression/index.ts +4 -8
- package/expression/parsing_context.ts +1 -1
- package/expression/types/image_id.ts +6 -8
- package/expression/types.ts +1 -1
- package/expression/values.ts +1 -3
- package/feature_filter/index.ts +1 -1
- package/function/index.ts +3 -3
- package/migrate/expressions.ts +1 -1
- package/migrate/v8.ts +1 -1
- package/migrate/v9.ts +1 -1
- package/migrate.ts +1 -1
- package/package.json +1 -1
- package/read_style.ts +4 -6
- package/reference/v8.json +313 -0
- package/test.js +2 -5
- package/types.ts +195 -0
- package/util/extend.ts +1 -1
- package/util/geometry_util.ts +19 -2
- package/util/interpolate.ts +4 -0
- package/validate/validate_fog.ts +1 -1
- package/validate/validate_glyphs_url.ts +1 -1
- package/validate/validate_layer.ts +2 -2
- package/validate/validate_light.ts +1 -1
- package/validate/validate_lights.ts +1 -1
- package/validate/validate_property.ts +1 -1
- package/validate/validate_source.ts +2 -4
- package/validate/validate_style.ts +2 -1
- package/validate/validate_terrain.ts +1 -1
- package/validate_mapbox_api_supported.ts +1 -1
- package/validate_style.min.ts +17 -15
- package/validate_style.ts +3 -3
- package/visit.ts +1 -1
package/reference/v8.json
CHANGED
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
"doc": "A collection of icon sets",
|
|
147
147
|
"sdk-support": {
|
|
148
148
|
"basic functionality": {
|
|
149
|
+
"js": "3.11.0",
|
|
149
150
|
"android": "11.11.0",
|
|
150
151
|
"ios": "11.11.0"
|
|
151
152
|
}
|
|
@@ -1366,6 +1367,13 @@
|
|
|
1366
1367
|
}
|
|
1367
1368
|
}
|
|
1368
1369
|
},
|
|
1370
|
+
"building": {
|
|
1371
|
+
"doc": "A procedural 3D building.",
|
|
1372
|
+
"sdk-support": {
|
|
1373
|
+
},
|
|
1374
|
+
"experimental": true,
|
|
1375
|
+
"private": true
|
|
1376
|
+
},
|
|
1369
1377
|
"raster": {
|
|
1370
1378
|
"doc": "Raster map textures such as satellite imagery.",
|
|
1371
1379
|
"sdk-support": {
|
|
@@ -1507,6 +1515,7 @@
|
|
|
1507
1515
|
"layout_circle",
|
|
1508
1516
|
"layout_heatmap",
|
|
1509
1517
|
"layout_fill-extrusion",
|
|
1518
|
+
"layout_building",
|
|
1510
1519
|
"layout_symbol",
|
|
1511
1520
|
"layout_raster",
|
|
1512
1521
|
"layout_raster-particle",
|
|
@@ -1956,6 +1965,115 @@
|
|
|
1956
1965
|
"property-type": "constant"
|
|
1957
1966
|
}
|
|
1958
1967
|
},
|
|
1968
|
+
"layout_building": {
|
|
1969
|
+
"visibility": {
|
|
1970
|
+
"type": "enum",
|
|
1971
|
+
"values": {
|
|
1972
|
+
"visible": {
|
|
1973
|
+
"doc": "The layer is shown."
|
|
1974
|
+
},
|
|
1975
|
+
"none": {
|
|
1976
|
+
"doc": "The layer is not shown."
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"default": "visible",
|
|
1980
|
+
"doc": "Whether this layer is displayed.",
|
|
1981
|
+
"sdk-support": {
|
|
1982
|
+
"basic functionality": {
|
|
1983
|
+
}
|
|
1984
|
+
},
|
|
1985
|
+
"expression": {
|
|
1986
|
+
"interpolated": false
|
|
1987
|
+
},
|
|
1988
|
+
"property-type": "constant"
|
|
1989
|
+
},
|
|
1990
|
+
"building-roof-shape": {
|
|
1991
|
+
"type": "enum",
|
|
1992
|
+
"values": {
|
|
1993
|
+
"flat": {
|
|
1994
|
+
"doc": "Use regular extruded buildings with flat roofs."
|
|
1995
|
+
},
|
|
1996
|
+
"hipped": {
|
|
1997
|
+
"doc": "Use hipped roof for the procedurally generated buildings."
|
|
1998
|
+
},
|
|
1999
|
+
"gabled": {
|
|
2000
|
+
"doc": "Use gabled roof for the procedurally generated buildings."
|
|
2001
|
+
},
|
|
2002
|
+
"parapet": {
|
|
2003
|
+
"doc": "Use parapet roof for the procedurally generated buildings."
|
|
2004
|
+
},
|
|
2005
|
+
"mansard": {
|
|
2006
|
+
"doc": "Use mansard roof for the procedurally generated buildings."
|
|
2007
|
+
},
|
|
2008
|
+
"skillion": {
|
|
2009
|
+
"doc": "Use skillion roof for the procedurally generated buildings."
|
|
2010
|
+
},
|
|
2011
|
+
"pyramidal": {
|
|
2012
|
+
"doc": "Use pyramidal roof for the procedurally generated buildings."
|
|
2013
|
+
}
|
|
2014
|
+
},
|
|
2015
|
+
"default": "flat",
|
|
2016
|
+
"doc": "Roof type to use for the procedural buildings.",
|
|
2017
|
+
"experimental": true,
|
|
2018
|
+
"private": true,
|
|
2019
|
+
"sdk-support": {
|
|
2020
|
+
"basic functionality": {
|
|
2021
|
+
},
|
|
2022
|
+
"data-driven styling": {
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
"expression": {
|
|
2026
|
+
"interpolated": false,
|
|
2027
|
+
"parameters": [
|
|
2028
|
+
"feature"
|
|
2029
|
+
]
|
|
2030
|
+
},
|
|
2031
|
+
"property-type": "data-driven"
|
|
2032
|
+
},
|
|
2033
|
+
"building-height": {
|
|
2034
|
+
"type": "number",
|
|
2035
|
+
"default": 0,
|
|
2036
|
+
"minimum": 0,
|
|
2037
|
+
"units": "meters",
|
|
2038
|
+
"doc": "The height of the procedural buildings.",
|
|
2039
|
+
"transition": true,
|
|
2040
|
+
"experimental": true,
|
|
2041
|
+
"private": true,
|
|
2042
|
+
"sdk-support": {
|
|
2043
|
+
"basic functionality": {
|
|
2044
|
+
},
|
|
2045
|
+
"data-driven styling": {
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"expression": {
|
|
2049
|
+
"interpolated": false
|
|
2050
|
+
},
|
|
2051
|
+
"property-type": "data-driven"
|
|
2052
|
+
},
|
|
2053
|
+
"building-base": {
|
|
2054
|
+
"type": "number",
|
|
2055
|
+
"default": 0,
|
|
2056
|
+
"minimum": 0,
|
|
2057
|
+
"units": "meters",
|
|
2058
|
+
"doc": "The height with which to extrude the base of this layer. Must be less than or equal to `building-height`.",
|
|
2059
|
+
"transition": true,
|
|
2060
|
+
"requires": [
|
|
2061
|
+
"building-height"
|
|
2062
|
+
],
|
|
2063
|
+
"experimental": true,
|
|
2064
|
+
"private": true,
|
|
2065
|
+
"sdk-support": {
|
|
2066
|
+
"basic functionality": {
|
|
2067
|
+
},
|
|
2068
|
+
"data-driven styling": {
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
"expression": {
|
|
2072
|
+
"interpolated": false
|
|
2073
|
+
},
|
|
2074
|
+
"property-type": "data-driven"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
1959
2077
|
"layout_line": {
|
|
1960
2078
|
"line-cap": {
|
|
1961
2079
|
"type": "enum",
|
|
@@ -3924,6 +4042,17 @@
|
|
|
3924
4042
|
"parameters": ["zoom", "feature"]
|
|
3925
4043
|
}
|
|
3926
4044
|
},
|
|
4045
|
+
"filter_building": {
|
|
4046
|
+
"type": "boolean",
|
|
4047
|
+
"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.",
|
|
4048
|
+
"default": false,
|
|
4049
|
+
"transition": false,
|
|
4050
|
+
"property-type": "data-driven",
|
|
4051
|
+
"expression": {
|
|
4052
|
+
"interpolated": false,
|
|
4053
|
+
"parameters": ["zoom", "feature"]
|
|
4054
|
+
}
|
|
4055
|
+
},
|
|
3927
4056
|
"filter_heatmap": {
|
|
3928
4057
|
"type": "boolean",
|
|
3929
4058
|
"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.",
|
|
@@ -6246,6 +6375,7 @@
|
|
|
6246
6375
|
"paint_circle",
|
|
6247
6376
|
"paint_heatmap",
|
|
6248
6377
|
"paint_fill-extrusion",
|
|
6378
|
+
"paint_building",
|
|
6249
6379
|
"paint_symbol",
|
|
6250
6380
|
"paint_raster",
|
|
6251
6381
|
"paint_raster-particle",
|
|
@@ -7234,6 +7364,189 @@
|
|
|
7234
7364
|
"property-type": "data-constant"
|
|
7235
7365
|
}
|
|
7236
7366
|
},
|
|
7367
|
+
"paint_building": {
|
|
7368
|
+
"building-opacity": {
|
|
7369
|
+
"type": "number",
|
|
7370
|
+
"default": 1,
|
|
7371
|
+
"minimum": 0,
|
|
7372
|
+
"maximum": 1,
|
|
7373
|
+
"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.",
|
|
7374
|
+
"transition": true,
|
|
7375
|
+
"experimental": true,
|
|
7376
|
+
"private": true,
|
|
7377
|
+
"sdk-support": {
|
|
7378
|
+
"basic functionality": {
|
|
7379
|
+
}
|
|
7380
|
+
},
|
|
7381
|
+
"expression": {
|
|
7382
|
+
"interpolated": true,
|
|
7383
|
+
"parameters": [
|
|
7384
|
+
"zoom"
|
|
7385
|
+
]
|
|
7386
|
+
},
|
|
7387
|
+
"property-type": "data-constant"
|
|
7388
|
+
},
|
|
7389
|
+
"building-ambient-occlusion-wall-intensity": {
|
|
7390
|
+
"property-type": "data-constant",
|
|
7391
|
+
"type": "number",
|
|
7392
|
+
"default": 0,
|
|
7393
|
+
"minimum": 0,
|
|
7394
|
+
"maximum": 1,
|
|
7395
|
+
"experimental": true,
|
|
7396
|
+
"private": true,
|
|
7397
|
+
"expression": {
|
|
7398
|
+
"interpolated": true,
|
|
7399
|
+
"parameters": [
|
|
7400
|
+
"zoom"
|
|
7401
|
+
]
|
|
7402
|
+
},
|
|
7403
|
+
"transition": true,
|
|
7404
|
+
"doc": "Controls the intensity of shading concave angles between walls and building elements, such as facades and rooftop.",
|
|
7405
|
+
"sdk-support": {
|
|
7406
|
+
"basic functionality": {
|
|
7407
|
+
}
|
|
7408
|
+
}
|
|
7409
|
+
},
|
|
7410
|
+
"building-ambient-occlusion-ground-intensity": {
|
|
7411
|
+
"property-type": "data-constant",
|
|
7412
|
+
"type": "number",
|
|
7413
|
+
"default": 0,
|
|
7414
|
+
"minimum": 0,
|
|
7415
|
+
"maximum": 1,
|
|
7416
|
+
"experimental": true,
|
|
7417
|
+
"private": true,
|
|
7418
|
+
"expression": {
|
|
7419
|
+
"interpolated": true,
|
|
7420
|
+
"parameters": [
|
|
7421
|
+
"zoom"
|
|
7422
|
+
]
|
|
7423
|
+
},
|
|
7424
|
+
"transition": true,
|
|
7425
|
+
"doc": "Controls the intensity of shading near ground",
|
|
7426
|
+
"sdk-support": {
|
|
7427
|
+
"basic functionality": {
|
|
7428
|
+
}
|
|
7429
|
+
}
|
|
7430
|
+
},
|
|
7431
|
+
"building-ambient-occlusion-ground-radius": {
|
|
7432
|
+
"property-type": "data-constant",
|
|
7433
|
+
"type": "number",
|
|
7434
|
+
"experimental": true,
|
|
7435
|
+
"private": true,
|
|
7436
|
+
"default": 3.0,
|
|
7437
|
+
"minimum": 0,
|
|
7438
|
+
"expression": {
|
|
7439
|
+
"interpolated": true,
|
|
7440
|
+
"parameters": [
|
|
7441
|
+
"zoom"
|
|
7442
|
+
]
|
|
7443
|
+
},
|
|
7444
|
+
"transition": true,
|
|
7445
|
+
"doc": "The extent of the ambient occlusion effect on the ground beneath the procedural buildings in meters.",
|
|
7446
|
+
"sdk-support": {
|
|
7447
|
+
"basic functionality": {
|
|
7448
|
+
}
|
|
7449
|
+
}
|
|
7450
|
+
},
|
|
7451
|
+
"building-ambient-occlusion-ground-attenuation": {
|
|
7452
|
+
"property-type": "data-constant",
|
|
7453
|
+
"type": "number",
|
|
7454
|
+
"experimental": true,
|
|
7455
|
+
"private": true,
|
|
7456
|
+
"default": 0.69,
|
|
7457
|
+
"minimum": 0.0,
|
|
7458
|
+
"maximum": 1.0,
|
|
7459
|
+
"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.",
|
|
7460
|
+
"transition": true,
|
|
7461
|
+
"expression": {
|
|
7462
|
+
"interpolated": true,
|
|
7463
|
+
"parameters": [
|
|
7464
|
+
"zoom"
|
|
7465
|
+
]
|
|
7466
|
+
},
|
|
7467
|
+
"sdk-support": {
|
|
7468
|
+
"basic functionality": {
|
|
7469
|
+
}
|
|
7470
|
+
}
|
|
7471
|
+
},
|
|
7472
|
+
"building-vertical-scale": {
|
|
7473
|
+
"property-type": "data-constant",
|
|
7474
|
+
"type": "number",
|
|
7475
|
+
"experimental": true,
|
|
7476
|
+
"private": true,
|
|
7477
|
+
"default": 1.0,
|
|
7478
|
+
"minimum": 0.0,
|
|
7479
|
+
"doc": "A global multiplier that can be used to scale base and height of the procedural buildings.",
|
|
7480
|
+
"transition": true,
|
|
7481
|
+
"expression": {
|
|
7482
|
+
"interpolated": true,
|
|
7483
|
+
"parameters": [
|
|
7484
|
+
"zoom"
|
|
7485
|
+
]
|
|
7486
|
+
},
|
|
7487
|
+
"sdk-support": {
|
|
7488
|
+
"basic functionality": {
|
|
7489
|
+
}
|
|
7490
|
+
}
|
|
7491
|
+
},
|
|
7492
|
+
"building-cast-shadows": {
|
|
7493
|
+
"type": "boolean",
|
|
7494
|
+
"default": true,
|
|
7495
|
+
"doc": "Enable/Disable shadow casting for this layer",
|
|
7496
|
+
"transition": false,
|
|
7497
|
+
"experimental": true,
|
|
7498
|
+
"private": true,
|
|
7499
|
+
"sdk-support": {
|
|
7500
|
+
"basic functionality": {
|
|
7501
|
+
}
|
|
7502
|
+
},
|
|
7503
|
+
"property-type": "data-constant"
|
|
7504
|
+
},
|
|
7505
|
+
"building-color": {
|
|
7506
|
+
"type": "color",
|
|
7507
|
+
"default": "rgba(193, 154, 127, 1)",
|
|
7508
|
+
"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`.",
|
|
7509
|
+
"experimental": true,
|
|
7510
|
+
"private": true,
|
|
7511
|
+
"sdk-support": {
|
|
7512
|
+
"basic functionality": {
|
|
7513
|
+
},
|
|
7514
|
+
"data-driven styling": {
|
|
7515
|
+
}
|
|
7516
|
+
},
|
|
7517
|
+
"expression": {
|
|
7518
|
+
"interpolated": true,
|
|
7519
|
+
"parameters": [
|
|
7520
|
+
"feature",
|
|
7521
|
+
"feature-state"
|
|
7522
|
+
]
|
|
7523
|
+
},
|
|
7524
|
+
"property-type": "data-driven"
|
|
7525
|
+
},
|
|
7526
|
+
"building-emissive-strength": {
|
|
7527
|
+
"type": "number",
|
|
7528
|
+
"default": 0,
|
|
7529
|
+
"minimum": 0,
|
|
7530
|
+
"doc": "Controls the intensity of light emitted on the source features.",
|
|
7531
|
+
"experimental": true,
|
|
7532
|
+
"private": true,
|
|
7533
|
+
"sdk-support": {
|
|
7534
|
+
"basic functionality": {
|
|
7535
|
+
},
|
|
7536
|
+
"data-driven styling": {
|
|
7537
|
+
}
|
|
7538
|
+
},
|
|
7539
|
+
"expression": {
|
|
7540
|
+
"interpolated": true,
|
|
7541
|
+
"parameters": [
|
|
7542
|
+
"feature",
|
|
7543
|
+
"feature-state",
|
|
7544
|
+
"measure-light"
|
|
7545
|
+
]
|
|
7546
|
+
},
|
|
7547
|
+
"property-type": "data-driven"
|
|
7548
|
+
}
|
|
7549
|
+
},
|
|
7237
7550
|
"paint_line": {
|
|
7238
7551
|
"line-opacity": {
|
|
7239
7552
|
"type": "number",
|
package/test.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/* eslint-disable no-process-exit */
|
|
3
2
|
|
|
4
3
|
import fs from 'fs';
|
|
5
4
|
import {execSync} from 'child_process';
|
|
6
5
|
import {createRequire} from 'module';
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
const packageJson = JSON.parse(fs.readFileSync('./package.json'));
|
|
7
|
+
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
|
|
10
8
|
|
|
11
|
-
process.on('unhandledRejection', (error) => {
|
|
9
|
+
process.on('unhandledRejection', (/** @type {Error} */ error) => {
|
|
12
10
|
// don't log `error` directly, because errors from child_process.execSync
|
|
13
11
|
// contain an (undocumented) `envPairs` with environment variable values
|
|
14
|
-
// @ts-expect-error - TS2339 - Property 'message' does not exist on type 'unknown'.
|
|
15
12
|
console.log(error.message || 'unhandledRejection');
|
|
16
13
|
process.exit(1);
|
|
17
14
|
});
|