@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/dist/index.d.ts
CHANGED
|
@@ -280,57 +280,114 @@ type FogSpecification = {
|
|
|
280
280
|
"vertical-range-transition"?: TransitionSpecification;
|
|
281
281
|
};
|
|
282
282
|
type SnowSpecification = {
|
|
283
|
+
/**
|
|
284
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
285
|
+
*/
|
|
283
286
|
"density"?: PropertyValueSpecification<number>;
|
|
284
287
|
"density-transition"?: TransitionSpecification;
|
|
288
|
+
/**
|
|
289
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
290
|
+
*/
|
|
285
291
|
"intensity"?: PropertyValueSpecification<number>;
|
|
286
292
|
"intensity-transition"?: TransitionSpecification;
|
|
293
|
+
/**
|
|
294
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
295
|
+
*/
|
|
287
296
|
"color"?: PropertyValueSpecification<ColorSpecification>;
|
|
288
297
|
"color-transition"?: TransitionSpecification;
|
|
289
298
|
"color-use-theme"?: PropertyValueSpecification<string>;
|
|
299
|
+
/**
|
|
300
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
301
|
+
*/
|
|
290
302
|
"opacity"?: PropertyValueSpecification<number>;
|
|
291
303
|
"opacity-transition"?: TransitionSpecification;
|
|
304
|
+
/**
|
|
305
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
306
|
+
*/
|
|
292
307
|
"vignette"?: PropertyValueSpecification<number>;
|
|
293
308
|
"vignette-transition"?: TransitionSpecification;
|
|
309
|
+
/**
|
|
310
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
311
|
+
*/
|
|
294
312
|
"vignette-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
295
313
|
"vignette-color-transition"?: TransitionSpecification;
|
|
296
314
|
"vignette-color-use-theme"?: PropertyValueSpecification<string>;
|
|
315
|
+
/**
|
|
316
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
317
|
+
*/
|
|
297
318
|
"center-thinning"?: PropertyValueSpecification<number>;
|
|
298
319
|
"center-thinning-transition"?: TransitionSpecification;
|
|
320
|
+
/**
|
|
321
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
322
|
+
*/
|
|
299
323
|
"direction"?: PropertyValueSpecification<[
|
|
300
324
|
number,
|
|
301
325
|
number
|
|
302
326
|
]>;
|
|
303
327
|
"direction-transition"?: TransitionSpecification;
|
|
328
|
+
/**
|
|
329
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
330
|
+
*/
|
|
304
331
|
"flake-size"?: PropertyValueSpecification<number>;
|
|
305
332
|
"flake-size-transition"?: TransitionSpecification;
|
|
306
333
|
};
|
|
307
334
|
type RainSpecification = {
|
|
335
|
+
/**
|
|
336
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
337
|
+
*/
|
|
308
338
|
"density"?: PropertyValueSpecification<number>;
|
|
309
339
|
"density-transition"?: TransitionSpecification;
|
|
340
|
+
/**
|
|
341
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
342
|
+
*/
|
|
310
343
|
"intensity"?: PropertyValueSpecification<number>;
|
|
311
344
|
"intensity-transition"?: TransitionSpecification;
|
|
345
|
+
/**
|
|
346
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
347
|
+
*/
|
|
312
348
|
"color"?: PropertyValueSpecification<ColorSpecification>;
|
|
313
349
|
"color-transition"?: TransitionSpecification;
|
|
314
350
|
"color-use-theme"?: PropertyValueSpecification<string>;
|
|
351
|
+
/**
|
|
352
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
353
|
+
*/
|
|
315
354
|
"opacity"?: PropertyValueSpecification<number>;
|
|
316
355
|
"opacity-transition"?: TransitionSpecification;
|
|
356
|
+
/**
|
|
357
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
358
|
+
*/
|
|
317
359
|
"vignette"?: PropertyValueSpecification<number>;
|
|
318
360
|
"vignette-transition"?: TransitionSpecification;
|
|
361
|
+
/**
|
|
362
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
363
|
+
*/
|
|
319
364
|
"vignette-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
320
365
|
"vignette-color-transition"?: TransitionSpecification;
|
|
321
366
|
"vignette-color-use-theme"?: PropertyValueSpecification<string>;
|
|
367
|
+
/**
|
|
368
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
369
|
+
*/
|
|
322
370
|
"center-thinning"?: PropertyValueSpecification<number>;
|
|
323
371
|
"center-thinning-transition"?: TransitionSpecification;
|
|
372
|
+
/**
|
|
373
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
374
|
+
*/
|
|
324
375
|
"direction"?: PropertyValueSpecification<[
|
|
325
376
|
number,
|
|
326
377
|
number
|
|
327
378
|
]>;
|
|
328
379
|
"direction-transition"?: TransitionSpecification;
|
|
380
|
+
/**
|
|
381
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
382
|
+
*/
|
|
329
383
|
"droplet-size"?: PropertyValueSpecification<[
|
|
330
384
|
number,
|
|
331
385
|
number
|
|
332
386
|
]>;
|
|
333
387
|
"droplet-size-transition"?: TransitionSpecification;
|
|
388
|
+
/**
|
|
389
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
390
|
+
*/
|
|
334
391
|
"distortion-strength"?: PropertyValueSpecification<number>;
|
|
335
392
|
"distortion-strength-transition"?: TransitionSpecification;
|
|
336
393
|
};
|
|
@@ -432,6 +489,12 @@ type VectorSourceSpecification = {
|
|
|
432
489
|
number,
|
|
433
490
|
number
|
|
434
491
|
];
|
|
492
|
+
"extra_bounds"?: Array<[
|
|
493
|
+
number,
|
|
494
|
+
number,
|
|
495
|
+
number,
|
|
496
|
+
number
|
|
497
|
+
]>;
|
|
435
498
|
"scheme"?: "xyz" | "tms";
|
|
436
499
|
"minzoom"?: number;
|
|
437
500
|
"maxzoom"?: number;
|
|
@@ -450,6 +513,12 @@ type RasterSourceSpecification = {
|
|
|
450
513
|
number,
|
|
451
514
|
number
|
|
452
515
|
];
|
|
516
|
+
"extra_bounds"?: Array<[
|
|
517
|
+
number,
|
|
518
|
+
number,
|
|
519
|
+
number,
|
|
520
|
+
number
|
|
521
|
+
]>;
|
|
453
522
|
"minzoom"?: number;
|
|
454
523
|
"maxzoom"?: number;
|
|
455
524
|
"tileSize"?: number;
|
|
@@ -468,6 +537,12 @@ type RasterDEMSourceSpecification = {
|
|
|
468
537
|
number,
|
|
469
538
|
number
|
|
470
539
|
];
|
|
540
|
+
"extra_bounds"?: Array<[
|
|
541
|
+
number,
|
|
542
|
+
number,
|
|
543
|
+
number,
|
|
544
|
+
number
|
|
545
|
+
]>;
|
|
471
546
|
"minzoom"?: number;
|
|
472
547
|
"maxzoom"?: number;
|
|
473
548
|
"tileSize"?: number;
|
|
@@ -486,6 +561,12 @@ type RasterArraySourceSpecification = {
|
|
|
486
561
|
number,
|
|
487
562
|
number
|
|
488
563
|
];
|
|
564
|
+
"extra_bounds"?: Array<[
|
|
565
|
+
number,
|
|
566
|
+
number,
|
|
567
|
+
number,
|
|
568
|
+
number
|
|
569
|
+
]>;
|
|
489
570
|
"minzoom"?: number;
|
|
490
571
|
"maxzoom"?: number;
|
|
491
572
|
"tileSize"?: number;
|
|
@@ -664,13 +745,24 @@ type FillLayerSpecification = {
|
|
|
664
745
|
"fill-translate-transition"?: TransitionSpecification;
|
|
665
746
|
"fill-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
666
747
|
"fill-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
748
|
+
"fill-pattern-cross-fade"?: PropertyValueSpecification<number>;
|
|
749
|
+
"fill-pattern-cross-fade-transition"?: TransitionSpecification;
|
|
667
750
|
"fill-emissive-strength"?: PropertyValueSpecification<number>;
|
|
668
751
|
"fill-emissive-strength-transition"?: TransitionSpecification;
|
|
752
|
+
/**
|
|
753
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
754
|
+
*/
|
|
669
755
|
"fill-z-offset"?: DataDrivenPropertyValueSpecification<number>;
|
|
670
756
|
"fill-z-offset-transition"?: TransitionSpecification;
|
|
757
|
+
/**
|
|
758
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
759
|
+
*/
|
|
671
760
|
"fill-bridge-guard-rail-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
672
761
|
"fill-bridge-guard-rail-color-transition"?: TransitionSpecification;
|
|
673
762
|
"fill-bridge-guard-rail-color-use-theme"?: PropertyValueSpecification<string>;
|
|
763
|
+
/**
|
|
764
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
765
|
+
*/
|
|
674
766
|
"fill-tunnel-structure-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
675
767
|
"fill-tunnel-structure-color-transition"?: TransitionSpecification;
|
|
676
768
|
"fill-tunnel-structure-color-use-theme"?: PropertyValueSpecification<string>;
|
|
@@ -732,6 +824,8 @@ type LineLayerSpecification = {
|
|
|
732
824
|
"line-blur-transition"?: TransitionSpecification;
|
|
733
825
|
"line-dasharray"?: DataDrivenPropertyValueSpecification<Array<number>>;
|
|
734
826
|
"line-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
827
|
+
"line-pattern-cross-fade"?: PropertyValueSpecification<number>;
|
|
828
|
+
"line-pattern-cross-fade-transition"?: TransitionSpecification;
|
|
735
829
|
"line-gradient"?: ExpressionSpecification;
|
|
736
830
|
"line-gradient-use-theme"?: PropertyValueSpecification<string>;
|
|
737
831
|
"line-trim-offset"?: [
|
|
@@ -745,6 +839,9 @@ type LineLayerSpecification = {
|
|
|
745
839
|
number,
|
|
746
840
|
number
|
|
747
841
|
]>;
|
|
842
|
+
/**
|
|
843
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
844
|
+
*/
|
|
748
845
|
"line-trim-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
749
846
|
"line-trim-color-transition"?: TransitionSpecification;
|
|
750
847
|
"line-trim-color-use-theme"?: PropertyValueSpecification<string>;
|
|
@@ -862,7 +959,7 @@ type SymbolLayerSpecification = {
|
|
|
862
959
|
]>;
|
|
863
960
|
"icon-translate-transition"?: TransitionSpecification;
|
|
864
961
|
"icon-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
865
|
-
"icon-image-cross-fade"?:
|
|
962
|
+
"icon-image-cross-fade"?: PropertyValueSpecification<number>;
|
|
866
963
|
"icon-image-cross-fade-transition"?: TransitionSpecification;
|
|
867
964
|
"text-opacity"?: DataDrivenPropertyValueSpecification<number>;
|
|
868
965
|
"text-opacity-transition"?: TransitionSpecification;
|
|
@@ -888,6 +985,9 @@ type SymbolLayerSpecification = {
|
|
|
888
985
|
"icon-color-contrast"?: ExpressionSpecification;
|
|
889
986
|
"icon-color-brightness-min"?: ExpressionSpecification;
|
|
890
987
|
"icon-color-brightness-max"?: ExpressionSpecification;
|
|
988
|
+
/**
|
|
989
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
990
|
+
*/
|
|
891
991
|
"symbol-z-offset"?: DataDrivenPropertyValueSpecification<number>;
|
|
892
992
|
"symbol-z-offset-transition"?: TransitionSpecification;
|
|
893
993
|
};
|
|
@@ -994,6 +1094,8 @@ type FillExtrusionLayerSpecification = {
|
|
|
994
1094
|
"fill-extrusion-translate-transition"?: TransitionSpecification;
|
|
995
1095
|
"fill-extrusion-translate-anchor"?: PropertyValueSpecification<"map" | "viewport">;
|
|
996
1096
|
"fill-extrusion-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
|
|
1097
|
+
"fill-extrusion-pattern-cross-fade"?: PropertyValueSpecification<number>;
|
|
1098
|
+
"fill-extrusion-pattern-cross-fade-transition"?: TransitionSpecification;
|
|
997
1099
|
"fill-extrusion-height"?: DataDrivenPropertyValueSpecification<number>;
|
|
998
1100
|
"fill-extrusion-height-transition"?: TransitionSpecification;
|
|
999
1101
|
"fill-extrusion-base"?: DataDrivenPropertyValueSpecification<number>;
|
|
@@ -1011,23 +1113,50 @@ type FillExtrusionLayerSpecification = {
|
|
|
1011
1113
|
"fill-extrusion-ambient-occlusion-intensity-transition"?: TransitionSpecification;
|
|
1012
1114
|
"fill-extrusion-ambient-occlusion-radius"?: PropertyValueSpecification<number>;
|
|
1013
1115
|
"fill-extrusion-ambient-occlusion-radius-transition"?: TransitionSpecification;
|
|
1116
|
+
/**
|
|
1117
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1118
|
+
*/
|
|
1014
1119
|
"fill-extrusion-ambient-occlusion-wall-radius"?: PropertyValueSpecification<number>;
|
|
1015
1120
|
"fill-extrusion-ambient-occlusion-wall-radius-transition"?: TransitionSpecification;
|
|
1121
|
+
/**
|
|
1122
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1123
|
+
*/
|
|
1016
1124
|
"fill-extrusion-ambient-occlusion-ground-radius"?: PropertyValueSpecification<number>;
|
|
1017
1125
|
"fill-extrusion-ambient-occlusion-ground-radius-transition"?: TransitionSpecification;
|
|
1126
|
+
/**
|
|
1127
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1128
|
+
*/
|
|
1018
1129
|
"fill-extrusion-ambient-occlusion-ground-attenuation"?: PropertyValueSpecification<number>;
|
|
1019
1130
|
"fill-extrusion-ambient-occlusion-ground-attenuation-transition"?: TransitionSpecification;
|
|
1131
|
+
/**
|
|
1132
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1133
|
+
*/
|
|
1020
1134
|
"fill-extrusion-flood-light-color"?: PropertyValueSpecification<ColorSpecification>;
|
|
1021
1135
|
"fill-extrusion-flood-light-color-transition"?: TransitionSpecification;
|
|
1022
1136
|
"fill-extrusion-flood-light-color-use-theme"?: PropertyValueSpecification<string>;
|
|
1137
|
+
/**
|
|
1138
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1139
|
+
*/
|
|
1023
1140
|
"fill-extrusion-flood-light-intensity"?: PropertyValueSpecification<number>;
|
|
1024
1141
|
"fill-extrusion-flood-light-intensity-transition"?: TransitionSpecification;
|
|
1142
|
+
/**
|
|
1143
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1144
|
+
*/
|
|
1025
1145
|
"fill-extrusion-flood-light-wall-radius"?: DataDrivenPropertyValueSpecification<number>;
|
|
1026
1146
|
"fill-extrusion-flood-light-wall-radius-transition"?: TransitionSpecification;
|
|
1147
|
+
/**
|
|
1148
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1149
|
+
*/
|
|
1027
1150
|
"fill-extrusion-flood-light-ground-radius"?: DataDrivenPropertyValueSpecification<number>;
|
|
1028
1151
|
"fill-extrusion-flood-light-ground-radius-transition"?: TransitionSpecification;
|
|
1152
|
+
/**
|
|
1153
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1154
|
+
*/
|
|
1029
1155
|
"fill-extrusion-flood-light-ground-attenuation"?: PropertyValueSpecification<number>;
|
|
1030
1156
|
"fill-extrusion-flood-light-ground-attenuation-transition"?: TransitionSpecification;
|
|
1157
|
+
/**
|
|
1158
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1159
|
+
*/
|
|
1031
1160
|
"fill-extrusion-vertical-scale"?: PropertyValueSpecification<number>;
|
|
1032
1161
|
"fill-extrusion-vertical-scale-transition"?: TransitionSpecification;
|
|
1033
1162
|
/**
|
|
@@ -1037,11 +1166,87 @@ type FillExtrusionLayerSpecification = {
|
|
|
1037
1166
|
"fill-extrusion-cutoff-fade-range"?: ExpressionSpecification;
|
|
1038
1167
|
"fill-extrusion-emissive-strength"?: DataDrivenPropertyValueSpecification<number>;
|
|
1039
1168
|
"fill-extrusion-emissive-strength-transition"?: TransitionSpecification;
|
|
1169
|
+
/**
|
|
1170
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1171
|
+
*/
|
|
1040
1172
|
"fill-extrusion-line-width"?: DataDrivenPropertyValueSpecification<number>;
|
|
1041
1173
|
"fill-extrusion-line-width-transition"?: TransitionSpecification;
|
|
1042
1174
|
"fill-extrusion-cast-shadows"?: boolean;
|
|
1043
1175
|
};
|
|
1044
1176
|
};
|
|
1177
|
+
type BuildingLayerSpecification = {
|
|
1178
|
+
"id": string;
|
|
1179
|
+
"type": "building";
|
|
1180
|
+
"metadata"?: unknown;
|
|
1181
|
+
"source": string;
|
|
1182
|
+
"source-layer"?: string;
|
|
1183
|
+
"slot"?: string;
|
|
1184
|
+
"minzoom"?: number;
|
|
1185
|
+
"maxzoom"?: number;
|
|
1186
|
+
"filter"?: FilterSpecification;
|
|
1187
|
+
"layout"?: {
|
|
1188
|
+
"visibility"?: "visible" | "none" | ExpressionSpecification;
|
|
1189
|
+
/**
|
|
1190
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1191
|
+
*/
|
|
1192
|
+
"building-roof-shape"?: DataDrivenPropertyValueSpecification<"flat" | "hipped" | "gabled" | "parapet" | "mansard" | "skillion" | "pyramidal">;
|
|
1193
|
+
/**
|
|
1194
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1195
|
+
*/
|
|
1196
|
+
"building-height"?: DataDrivenPropertyValueSpecification<number>;
|
|
1197
|
+
"building-height-transition"?: TransitionSpecification;
|
|
1198
|
+
/**
|
|
1199
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1200
|
+
*/
|
|
1201
|
+
"building-base"?: DataDrivenPropertyValueSpecification<number>;
|
|
1202
|
+
"building-base-transition"?: TransitionSpecification;
|
|
1203
|
+
};
|
|
1204
|
+
"paint"?: {
|
|
1205
|
+
/**
|
|
1206
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1207
|
+
*/
|
|
1208
|
+
"building-opacity"?: PropertyValueSpecification<number>;
|
|
1209
|
+
"building-opacity-transition"?: TransitionSpecification;
|
|
1210
|
+
/**
|
|
1211
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1212
|
+
*/
|
|
1213
|
+
"building-ambient-occlusion-wall-intensity"?: PropertyValueSpecification<number>;
|
|
1214
|
+
"building-ambient-occlusion-wall-intensity-transition"?: TransitionSpecification;
|
|
1215
|
+
/**
|
|
1216
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1217
|
+
*/
|
|
1218
|
+
"building-ambient-occlusion-ground-intensity"?: PropertyValueSpecification<number>;
|
|
1219
|
+
"building-ambient-occlusion-ground-intensity-transition"?: TransitionSpecification;
|
|
1220
|
+
/**
|
|
1221
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1222
|
+
*/
|
|
1223
|
+
"building-ambient-occlusion-ground-radius"?: PropertyValueSpecification<number>;
|
|
1224
|
+
"building-ambient-occlusion-ground-radius-transition"?: TransitionSpecification;
|
|
1225
|
+
/**
|
|
1226
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1227
|
+
*/
|
|
1228
|
+
"building-ambient-occlusion-ground-attenuation"?: PropertyValueSpecification<number>;
|
|
1229
|
+
"building-ambient-occlusion-ground-attenuation-transition"?: TransitionSpecification;
|
|
1230
|
+
/**
|
|
1231
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1232
|
+
*/
|
|
1233
|
+
"building-vertical-scale"?: PropertyValueSpecification<number>;
|
|
1234
|
+
"building-vertical-scale-transition"?: TransitionSpecification;
|
|
1235
|
+
/**
|
|
1236
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1237
|
+
*/
|
|
1238
|
+
"building-cast-shadows"?: boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1241
|
+
*/
|
|
1242
|
+
"building-color"?: DataDrivenPropertyValueSpecification<ColorSpecification>;
|
|
1243
|
+
"building-color-use-theme"?: PropertyValueSpecification<string>;
|
|
1244
|
+
/**
|
|
1245
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1246
|
+
*/
|
|
1247
|
+
"building-emissive-strength"?: DataDrivenPropertyValueSpecification<number>;
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1045
1250
|
type RasterLayerSpecification = {
|
|
1046
1251
|
"id": string;
|
|
1047
1252
|
"type": "raster";
|
|
@@ -1090,6 +1295,9 @@ type RasterLayerSpecification = {
|
|
|
1090
1295
|
* @experimental This property is experimental and subject to change in future versions.
|
|
1091
1296
|
*/
|
|
1092
1297
|
"raster-array-band"?: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* @experimental This property is experimental and subject to change in future versions.
|
|
1300
|
+
*/
|
|
1093
1301
|
"raster-elevation"?: PropertyValueSpecification<number>;
|
|
1094
1302
|
"raster-elevation-transition"?: TransitionSpecification;
|
|
1095
1303
|
};
|
|
@@ -1310,7 +1518,7 @@ type ClipLayerSpecification = {
|
|
|
1310
1518
|
};
|
|
1311
1519
|
"paint"?: never;
|
|
1312
1520
|
};
|
|
1313
|
-
type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | RasterLayerSpecification | RasterParticleLayerSpecification | HillshadeLayerSpecification | ModelLayerSpecification | BackgroundLayerSpecification | SkyLayerSpecification | SlotLayerSpecification | ClipLayerSpecification;
|
|
1521
|
+
type LayerSpecification = FillLayerSpecification | LineLayerSpecification | SymbolLayerSpecification | CircleLayerSpecification | HeatmapLayerSpecification | FillExtrusionLayerSpecification | BuildingLayerSpecification | RasterLayerSpecification | RasterParticleLayerSpecification | HillshadeLayerSpecification | ModelLayerSpecification | BackgroundLayerSpecification | SkyLayerSpecification | SlotLayerSpecification | ClipLayerSpecification;
|
|
1314
1522
|
/**
|
|
1315
1523
|
* Given an array of layers, some of which may contain `ref` properties
|
|
1316
1524
|
* whose value is the `id` of another property, return a new array where
|
|
@@ -1327,7 +1535,7 @@ type LayerSpecification = FillLayerSpecification | LineLayerSpecification | Symb
|
|
|
1327
1535
|
export function derefLayers(layers: Array<LayerSpecification>): Array<LayerSpecification>;
|
|
1328
1536
|
type Command = {
|
|
1329
1537
|
command: string;
|
|
1330
|
-
args:
|
|
1538
|
+
args: unknown[];
|
|
1331
1539
|
};
|
|
1332
1540
|
/**
|
|
1333
1541
|
* Diff two stylesheet
|
|
@@ -1352,8 +1560,8 @@ export declare class ValidationError {
|
|
|
1352
1560
|
message: string;
|
|
1353
1561
|
identifier: string | null | undefined;
|
|
1354
1562
|
line: number | null | undefined;
|
|
1355
|
-
constructor(key: string | null | undefined, value: {
|
|
1356
|
-
__line__
|
|
1563
|
+
constructor(key: string | null | undefined, value: (string | number | boolean) & {
|
|
1564
|
+
__line__?: number;
|
|
1357
1565
|
} | null | undefined, message: string, identifier?: string | null);
|
|
1358
1566
|
}
|
|
1359
1567
|
export declare class ParsingError {
|
|
@@ -1528,7 +1736,7 @@ declare class ImageVariant {
|
|
|
1528
1736
|
constructor(id: string | ImageIdSpec, options?: RasterizationOptions);
|
|
1529
1737
|
toString(): StringifiedImageVariant;
|
|
1530
1738
|
static parse(str: StringifiedImageVariant): ImageVariant | null;
|
|
1531
|
-
scaleSelf(factor: number): this;
|
|
1739
|
+
scaleSelf(factor: number, yFactor?: number): this;
|
|
1532
1740
|
}
|
|
1533
1741
|
declare class ResolvedImage {
|
|
1534
1742
|
primaryId: ImageId;
|
|
@@ -1678,12 +1886,12 @@ declare class EvaluationContext {
|
|
|
1678
1886
|
[_: string]: Color | null | undefined;
|
|
1679
1887
|
};
|
|
1680
1888
|
constructor(scope?: string | null, options?: ConfigOptions | null);
|
|
1681
|
-
id(): number | null;
|
|
1889
|
+
id(): string | number | null;
|
|
1682
1890
|
geometryType(): null | string;
|
|
1683
1891
|
geometry(): Array<Array<Point>> | null | undefined;
|
|
1684
1892
|
canonicalID(): null | CanonicalTileID;
|
|
1685
1893
|
properties(): {
|
|
1686
|
-
[key: string]:
|
|
1894
|
+
readonly [key: string]: unknown;
|
|
1687
1895
|
};
|
|
1688
1896
|
measureLight(_: string): number;
|
|
1689
1897
|
distanceFromCenter(): number;
|
|
@@ -1713,13 +1921,9 @@ type InterpolationType = {
|
|
|
1713
1921
|
};
|
|
1714
1922
|
interface Feature {
|
|
1715
1923
|
readonly type: 0 | 1 | 2 | 3 | "Unknown" | "Point" | "LineString" | "Polygon";
|
|
1716
|
-
readonly id?: number | null;
|
|
1717
|
-
readonly properties:
|
|
1718
|
-
|
|
1719
|
-
};
|
|
1720
|
-
readonly patterns?: {
|
|
1721
|
-
[_: string]: string;
|
|
1722
|
-
};
|
|
1924
|
+
readonly id?: string | number | null;
|
|
1925
|
+
readonly properties: Record<PropertyKey, unknown>;
|
|
1926
|
+
readonly patterns?: Record<PropertyKey, string[]>;
|
|
1723
1927
|
readonly geometry?: Array<Array<Point>>;
|
|
1724
1928
|
}
|
|
1725
1929
|
type FeatureState = {
|
|
@@ -1907,6 +2111,10 @@ type ValidationErrors = ReadonlyArray<ValidationError$1>;
|
|
|
1907
2111
|
* var errors = validate(style);
|
|
1908
2112
|
*/
|
|
1909
2113
|
declare function validateStyle(style: StyleSpecification | string | Buffer, styleSpec?: StyleReference): ValidationErrors;
|
|
2114
|
+
type MapboxStyleSpecification = StyleSpecification & {
|
|
2115
|
+
visibility?: "public" | "private";
|
|
2116
|
+
protected?: boolean;
|
|
2117
|
+
};
|
|
1910
2118
|
/**
|
|
1911
2119
|
* Validate a Mapbox GL style against the style specification and check for
|
|
1912
2120
|
* compatibility with the Mapbox Styles API.
|
|
@@ -1917,7 +2125,7 @@ declare function validateStyle(style: StyleSpecification | string | Buffer, styl
|
|
|
1917
2125
|
* var validateMapboxApiSupported = require('mapbox-gl-style-spec/lib/validate_style_mapbox_api_supported.js');
|
|
1918
2126
|
* var errors = validateMapboxApiSupported(style);
|
|
1919
2127
|
*/
|
|
1920
|
-
export function validateMapboxApiSupported(style:
|
|
2128
|
+
export function validateMapboxApiSupported(style: MapboxStyleSpecification, styleSpec?: StyleReference): ValidationErrors;
|
|
1921
2129
|
type ExpressionType = "data-driven" | "color-ramp" | "data-constant" | "constant";
|
|
1922
2130
|
type ExpressionParameters = Array<"zoom" | "feature" | "feature-state" | "heatmap-density" | "line-progress" | "raster-value" | "sky-radial-progress" | "pitch" | "distance-from-center" | "measure-light" | "raster-particle-speed">;
|
|
1923
2131
|
type ExpressionSpecification$1 = {
|