maplibre-gl 2.2.0-pre.3 → 2.2.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.
Files changed (121) hide show
  1. package/README.md +73 -14
  2. package/build/generate-debug-index-file.ts +19 -0
  3. package/build/generate-style-code.ts +6 -1
  4. package/build/generate-style-spec.ts +151 -35
  5. package/build/generate-typings.ts +1 -1
  6. package/build/rollup_plugins.ts +4 -1
  7. package/dist/maplibre-gl-csp-worker.js +1 -1
  8. package/dist/maplibre-gl-csp-worker.js.map +1 -1
  9. package/dist/maplibre-gl-csp.js +1 -1
  10. package/dist/maplibre-gl-csp.js.map +1 -1
  11. package/dist/maplibre-gl-dev.js +364 -3124
  12. package/dist/maplibre-gl.css +1 -1
  13. package/dist/maplibre-gl.d.ts +439 -151
  14. package/dist/maplibre-gl.js +4 -4
  15. package/dist/maplibre-gl.js.map +1 -1
  16. package/package.json +68 -65
  17. package/src/css/maplibre-gl.css +39 -32
  18. package/src/data/bucket/fill_bucket.test.ts +1 -0
  19. package/src/data/bucket/symbol_bucket.test.ts +2 -0
  20. package/src/data/evaluation_feature.ts +1 -1
  21. package/src/data/program_configuration.ts +2 -2
  22. package/src/geo/transform.ts +4 -4
  23. package/src/gl/vertex_buffer.ts +4 -4
  24. package/src/index.ts +1 -1
  25. package/src/render/image_atlas.ts +1 -0
  26. package/src/render/image_manager.ts +1 -0
  27. package/src/render/program/debug_program.ts +1 -1
  28. package/src/render/render_to_texture.ts +3 -0
  29. package/src/render/terrain.ts +21 -21
  30. package/src/shaders/README.md +2 -2
  31. package/src/source/geojson_worker_source.test.ts +2 -2
  32. package/src/source/geojson_wrapper.test.ts +1 -1
  33. package/src/source/image_source.test.ts +8 -8
  34. package/src/source/image_source.ts +1 -1
  35. package/src/source/raster_tile_source.test.ts +1 -1
  36. package/src/source/source_cache.test.ts +12 -12
  37. package/src/source/source_cache.ts +1 -1
  38. package/src/source/terrain_source_cache.ts +3 -3
  39. package/src/source/vector_tile_source.test.ts +1 -1
  40. package/src/source/vector_tile_worker_source.test.ts +1 -1
  41. package/src/source/video_source.test.ts +2 -2
  42. package/src/source/worker.ts +2 -4
  43. package/src/style/light.test.ts +1 -1
  44. package/src/style/style.test.ts +3 -3
  45. package/src/style/style.ts +2 -2
  46. package/src/style/style_layer/background_style_layer_properties.g.ts +1 -0
  47. package/src/style/style_layer/circle_style_layer_properties.g.ts +1 -0
  48. package/src/style/style_layer/fill_extrusion_style_layer_properties.g.ts +1 -0
  49. package/src/style/style_layer/fill_style_layer_properties.g.ts +1 -0
  50. package/src/style/style_layer/heatmap_style_layer_properties.g.ts +1 -0
  51. package/src/style/style_layer/hillshade_style_layer_properties.g.ts +1 -0
  52. package/src/style/style_layer/line_style_layer_properties.g.ts +1 -0
  53. package/src/style/style_layer/raster_style_layer_properties.g.ts +1 -0
  54. package/src/style/style_layer/symbol_style_layer.ts +16 -1
  55. package/src/style/style_layer/symbol_style_layer_properties.g.ts +4 -3
  56. package/src/style-spec/CHANGELOG.md +5 -0
  57. package/src/style-spec/composite.test.ts +2 -0
  58. package/src/style-spec/diff.test.ts +3 -3
  59. package/src/style-spec/empty.ts +3 -2
  60. package/src/style-spec/expression/definitions/coercion.ts +13 -2
  61. package/src/style-spec/expression/definitions/interpolate.ts +1 -0
  62. package/src/style-spec/expression/expression.test.ts +1 -1
  63. package/src/style-spec/expression/expression.ts +3 -0
  64. package/src/style-spec/expression/index.ts +8 -2
  65. package/src/style-spec/expression/parsing_context.ts +2 -0
  66. package/src/style-spec/expression/types.ts +6 -1
  67. package/src/style-spec/expression/values.ts +9 -4
  68. package/src/style-spec/feature_filter/convert.ts +65 -65
  69. package/src/style-spec/feature_filter/feature_filter.test.ts +45 -4
  70. package/src/style-spec/feature_filter/index.ts +2 -1
  71. package/src/style-spec/function/index.test.ts +117 -1
  72. package/src/style-spec/function/index.ts +24 -12
  73. package/src/style-spec/migrate/expressions.ts +1 -1
  74. package/src/style-spec/migrate/v8.test.ts +2 -0
  75. package/src/style-spec/migrate/v9.test.ts +6 -4
  76. package/src/style-spec/migrate.test.ts +3 -1
  77. package/src/style-spec/package.json +1 -1
  78. package/src/style-spec/reference/latest.ts +2 -2
  79. package/src/style-spec/reference/v8.json +9 -6
  80. package/src/style-spec/style-spec.test.ts +2 -1
  81. package/src/style-spec/style-spec.ts +18 -9
  82. package/src/style-spec/types.g.ts +152 -36
  83. package/src/style-spec/util/interpolate.test.ts +5 -0
  84. package/src/style-spec/util/interpolate.ts +12 -0
  85. package/src/style-spec/util/padding.test.ts +27 -0
  86. package/src/style-spec/util/padding.ts +64 -0
  87. package/src/style-spec/validate/validate.ts +3 -1
  88. package/src/style-spec/validate/validate_padding.test.ts +82 -0
  89. package/src/style-spec/validate/validate_padding.ts +36 -0
  90. package/src/style-spec/validate_style.ts +1 -1
  91. package/src/symbol/check_max_angle.test.ts +5 -5
  92. package/src/symbol/collision_feature.test.ts +22 -5
  93. package/src/symbol/collision_feature.ts +7 -5
  94. package/src/symbol/collision_index.ts +1 -1
  95. package/src/symbol/get_anchors.test.ts +4 -4
  96. package/src/symbol/projection.ts +1 -1
  97. package/src/symbol/quads.test.ts +1 -1
  98. package/src/symbol/shaping.ts +10 -10
  99. package/src/symbol/symbol_layout.ts +5 -4
  100. package/src/symbol/symbol_style_layer.test.ts +1 -1
  101. package/src/ui/camera.test.ts +11 -11
  102. package/src/ui/control/geolocate_control.ts +1 -1
  103. package/src/ui/control/terrain_control.ts +4 -4
  104. package/src/ui/handler/cooperative_gestures.test.ts +167 -0
  105. package/src/ui/handler/drag_pan.test.ts +2 -1
  106. package/src/ui/handler/scroll_zoom.ts +7 -0
  107. package/src/ui/handler/touch_pan.ts +22 -2
  108. package/src/ui/handler/touch_zoom_rotate.ts +18 -1
  109. package/src/ui/handler_manager.ts +2 -2
  110. package/src/ui/map.test.ts +16 -16
  111. package/src/ui/map.ts +76 -8
  112. package/src/ui/map_events.test.ts +33 -32
  113. package/src/ui/popup.test.ts +2 -2
  114. package/src/util/ajax.test.ts +5 -5
  115. package/src/util/ajax.ts +1 -1
  116. package/src/util/classify_rings.test.ts +27 -27
  117. package/src/util/primitives.ts +4 -4
  118. package/src/util/resolve_tokens.test.ts +1 -1
  119. package/src/util/tile_request_cache.test.ts +5 -5
  120. package/src/util/util.test.ts +5 -5
  121. package/src/util/util.ts +2 -3
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v6.9.0
1
+ // Generated by dts-bundle-generator v6.12.0
2
2
 
3
3
  import Point from '@mapbox/point-geometry';
4
4
  import TinySDF from '@mapbox/tiny-sdf';
@@ -74,7 +74,7 @@ export declare class AJAXError extends Error {
74
74
  }
75
75
  export declare type ExpiryData = {
76
76
  cacheControl?: string | null;
77
- expires?: string | null;
77
+ expires?: Date | string | null;
78
78
  };
79
79
  export declare type GetImageCallback = (error?: Error | null, image?: HTMLImageElement | ImageBitmap | null, expiry?: ExpiryData | null) => void;
80
80
  export declare type ResourceTypeEnum = keyof IResourceType;
@@ -188,103 +188,406 @@ export declare class ZoomHistory {
188
188
  update(z: number, now: number): boolean;
189
189
  }
190
190
  export declare type ColorSpecification = string;
191
+ export declare type PaddingSpecification = number | number[];
191
192
  export declare type FormattedSpecification = string;
192
193
  export declare type ResolvedImageSpecification = string;
193
194
  export declare type PromoteIdSpecification = {
194
195
  [_: string]: string;
195
196
  } | string;
196
- export declare type FilterSpecificationInputType = string | number | boolean;
197
- export declare type FilterSpecification = [
197
+ export declare type ExpressionInputType = string | number | boolean;
198
+ export declare type CollatorExpressionSpecification = [
199
+ "collator",
200
+ {
201
+ "case-sensitive"?: boolean | ExpressionSpecification;
202
+ "diacritic-sensitive"?: boolean | ExpressionSpecification;
203
+ locale?: string | ExpressionSpecification;
204
+ }
205
+ ];
206
+ export declare type InterpolationSpecification = [
207
+ "linear"
208
+ ] | [
209
+ "exponential",
210
+ number | ExpressionSpecification
211
+ ] | [
212
+ "cubic-bezier",
213
+ number | ExpressionSpecification,
214
+ number | ExpressionSpecification,
215
+ number | ExpressionSpecification,
216
+ number | ExpressionSpecification
217
+ ];
218
+ export declare type ExpressionSpecification = [
219
+ "array",
220
+ unknown | ExpressionSpecification
221
+ ] | [
222
+ "array",
223
+ ExpressionInputType | ExpressionSpecification,
224
+ unknown | ExpressionSpecification
225
+ ] | [
226
+ "array",
227
+ ExpressionInputType | ExpressionSpecification,
228
+ number | ExpressionSpecification,
229
+ unknown | ExpressionSpecification
230
+ ] | [
231
+ "boolean",
232
+ ...(unknown | ExpressionSpecification)[],
233
+ unknown | ExpressionSpecification
234
+ ] | CollatorExpressionSpecification | [
235
+ "format",
236
+ ...(string | [
237
+ "image",
238
+ ExpressionSpecification
239
+ ] | ExpressionSpecification | {
240
+ "font-scale"?: number | ExpressionSpecification;
241
+ "text-font"?: string[] | ExpressionSpecification;
242
+ "text-color": ColorSpecification | ExpressionSpecification;
243
+ })[]
244
+ ] | [
245
+ "image",
246
+ unknown | ExpressionSpecification
247
+ ] | [
248
+ "literal",
249
+ unknown
250
+ ] | [
251
+ "number",
252
+ unknown | ExpressionSpecification,
253
+ ...(unknown | ExpressionSpecification)[]
254
+ ] | [
255
+ "number-format",
256
+ number | ExpressionSpecification,
257
+ {
258
+ "locale"?: string | ExpressionSpecification;
259
+ "currency"?: string | ExpressionSpecification;
260
+ "min-fraction-digits"?: number | ExpressionSpecification;
261
+ "max-fraction-digits"?: number | ExpressionSpecification;
262
+ }
263
+ ] | [
264
+ "object",
265
+ unknown | ExpressionSpecification,
266
+ ...(unknown | ExpressionSpecification)[]
267
+ ] | [
268
+ "string",
269
+ unknown | ExpressionSpecification,
270
+ ...(unknown | ExpressionSpecification)[]
271
+ ] | [
272
+ "to-boolean",
273
+ unknown | ExpressionSpecification
274
+ ] | [
275
+ "to-color",
276
+ unknown | ExpressionSpecification,
277
+ ...(unknown | ExpressionSpecification)[]
278
+ ] | [
279
+ "to-number",
280
+ unknown | ExpressionSpecification,
281
+ ...(unknown | ExpressionSpecification)[]
282
+ ] | [
283
+ "to-string",
284
+ unknown | ExpressionSpecification
285
+ ] | [
286
+ "accumulated"
287
+ ] | [
288
+ "feature-state",
289
+ string
290
+ ] | [
291
+ "geometry-type"
292
+ ] | [
293
+ "id"
294
+ ] | [
295
+ "line-progress"
296
+ ] | [
297
+ "properties"
298
+ ] | [
198
299
  "at",
199
- number,
200
- (number | string)[]
300
+ number | ExpressionSpecification,
301
+ ExpressionSpecification
201
302
  ] | [
202
303
  "get",
203
- string,
204
- Record<string, unknown>?
304
+ string | ExpressionSpecification,
305
+ (Record<string, unknown> | ExpressionSpecification)?
205
306
  ] | [
206
307
  "has",
207
- string,
208
- Record<string, unknown>?
308
+ string | ExpressionSpecification,
309
+ (Record<string, unknown> | ExpressionSpecification)?
209
310
  ] | [
210
311
  "in",
211
- ...FilterSpecificationInputType[],
212
- FilterSpecificationInputType | FilterSpecificationInputType[]
312
+ ExpressionInputType | ExpressionSpecification,
313
+ ExpressionInputType | ExpressionSpecification
213
314
  ] | [
214
315
  "index-of",
215
- FilterSpecificationInputType,
216
- FilterSpecificationInputType | FilterSpecificationInputType[]
316
+ ExpressionInputType | ExpressionSpecification,
317
+ ExpressionInputType | ExpressionSpecification
217
318
  ] | [
218
319
  "length",
219
- string | string[]
320
+ string | ExpressionSpecification
220
321
  ] | [
221
322
  "slice",
222
- string | string[],
223
- number
323
+ string | ExpressionSpecification,
324
+ number | ExpressionSpecification
224
325
  ] | [
225
326
  "!",
226
- FilterSpecification
327
+ boolean | ExpressionSpecification
227
328
  ] | [
228
329
  "!=",
229
- string | FilterSpecification,
230
- FilterSpecificationInputType
330
+ ExpressionInputType | ExpressionSpecification,
331
+ ExpressionInputType | ExpressionSpecification,
332
+ CollatorExpressionSpecification?
231
333
  ] | [
232
334
  "<",
233
- string | FilterSpecification,
234
- FilterSpecificationInputType
335
+ ExpressionInputType | ExpressionSpecification,
336
+ ExpressionInputType | ExpressionSpecification,
337
+ CollatorExpressionSpecification?
235
338
  ] | [
236
339
  "<=",
237
- string | FilterSpecification,
238
- FilterSpecificationInputType
340
+ ExpressionInputType | ExpressionSpecification,
341
+ ExpressionInputType | ExpressionSpecification,
342
+ CollatorExpressionSpecification?
239
343
  ] | [
240
344
  "==",
241
- string | FilterSpecification,
242
- FilterSpecificationInputType
345
+ ExpressionInputType | ExpressionSpecification,
346
+ ExpressionInputType | ExpressionSpecification,
347
+ CollatorExpressionSpecification?
243
348
  ] | [
244
349
  ">",
245
- string | FilterSpecification,
246
- FilterSpecificationInputType
350
+ ExpressionInputType | ExpressionSpecification,
351
+ ExpressionInputType | ExpressionSpecification,
352
+ CollatorExpressionSpecification?
247
353
  ] | [
248
354
  ">=",
249
- string | FilterSpecification,
250
- FilterSpecificationInputType
355
+ ExpressionInputType | ExpressionSpecification,
356
+ ExpressionInputType | ExpressionSpecification,
357
+ CollatorExpressionSpecification?
251
358
  ] | [
252
359
  "all",
253
- ...FilterSpecification[],
254
- FilterSpecificationInputType
360
+ ...(boolean | ExpressionSpecification)[]
255
361
  ] | [
256
362
  "any",
257
- ...FilterSpecification[],
258
- FilterSpecificationInputType
363
+ ...(boolean | ExpressionSpecification)[]
259
364
  ] | [
260
365
  "case",
261
- ...FilterSpecification[],
262
- FilterSpecificationInputType
366
+ boolean | ExpressionSpecification,
367
+ ExpressionInputType | ExpressionSpecification,
368
+ ...(boolean | ExpressionInputType | ExpressionSpecification)[],
369
+ ExpressionInputType | ExpressionSpecification
263
370
  ] | [
264
371
  "coalesce",
265
- ...FilterSpecification[],
266
- FilterSpecificationInputType
372
+ ExpressionInputType | ExpressionSpecification,
373
+ ExpressionInputType | ExpressionSpecification,
374
+ ...(ExpressionInputType | ExpressionSpecification)[]
267
375
  ] | [
268
376
  "match",
269
- ...FilterSpecification[],
270
- FilterSpecificationInputType
377
+ ExpressionInputType | ExpressionSpecification,
378
+ ExpressionInputType | ExpressionInputType[],
379
+ ExpressionInputType | ExpressionSpecification,
380
+ ...(ExpressionInputType | ExpressionInputType[] | ExpressionSpecification)[],
381
+ ExpressionInputType
271
382
  ] | [
272
383
  "within",
273
- ...FilterSpecification[],
274
- FilterSpecificationInputType
384
+ unknown | ExpressionSpecification
275
385
  ] | [
276
- "!in",
277
- ...FilterSpecification[],
278
- FilterSpecificationInputType
386
+ "interpolate",
387
+ InterpolationSpecification,
388
+ number | ExpressionSpecification,
389
+ number | ExpressionSpecification,
390
+ ExpressionInputType | ExpressionSpecification,
391
+ ...(number | ExpressionInputType | ExpressionSpecification)[]
392
+ ] | [
393
+ "interpolate-hcl",
394
+ InterpolationSpecification,
395
+ number | ExpressionSpecification,
396
+ number | ExpressionSpecification,
397
+ ExpressionInputType | ExpressionSpecification,
398
+ ...(number | ColorSpecification | ExpressionSpecification)[]
399
+ ] | [
400
+ "interpolate-lab",
401
+ InterpolationSpecification,
402
+ number | ExpressionSpecification,
403
+ number | ExpressionSpecification,
404
+ ExpressionInputType | ExpressionSpecification,
405
+ ...(number | ColorSpecification | ExpressionSpecification)[]
406
+ ] | [
407
+ "step",
408
+ number | ExpressionSpecification,
409
+ number | ExpressionSpecification,
410
+ ExpressionInputType | ExpressionSpecification,
411
+ ...(number | ExpressionInputType | ExpressionSpecification)[]
412
+ ] | [
413
+ "let",
414
+ string,
415
+ ExpressionInputType | ExpressionSpecification,
416
+ ...(string | ExpressionInputType | ExpressionSpecification)[]
417
+ ] | [
418
+ "var",
419
+ string
420
+ ] | [
421
+ "concat",
422
+ ExpressionInputType | ExpressionSpecification,
423
+ ExpressionInputType | ExpressionSpecification,
424
+ ...(ExpressionInputType | ExpressionSpecification)[]
425
+ ] | [
426
+ "downcase",
427
+ string | ExpressionSpecification
428
+ ] | [
429
+ "is-supported-script",
430
+ string | ExpressionSpecification
431
+ ] | [
432
+ "resolved-locale",
433
+ CollatorExpressionSpecification
434
+ ] | [
435
+ "upcase",
436
+ string | ExpressionSpecification
437
+ ] | [
438
+ "rgb",
439
+ number | ExpressionSpecification,
440
+ number | ExpressionSpecification,
441
+ number | ExpressionSpecification
442
+ ] | [
443
+ "rgba",
444
+ number | ExpressionSpecification,
445
+ number | ExpressionSpecification,
446
+ number | ExpressionSpecification,
447
+ number | ExpressionSpecification
448
+ ] | [
449
+ "to-rgba",
450
+ ColorSpecification | ExpressionSpecification
451
+ ] | [
452
+ "-",
453
+ number | ExpressionSpecification,
454
+ (number | ExpressionSpecification)?
455
+ ] | [
456
+ "*",
457
+ number | ExpressionSpecification,
458
+ number | ExpressionSpecification,
459
+ ...(number | ExpressionSpecification)[]
460
+ ] | [
461
+ "/",
462
+ number | ExpressionSpecification,
463
+ number | ExpressionSpecification
464
+ ] | [
465
+ "%",
466
+ number | ExpressionSpecification,
467
+ number | ExpressionSpecification
468
+ ] | [
469
+ "^",
470
+ number | ExpressionSpecification,
471
+ number | ExpressionSpecification
472
+ ] | [
473
+ "+",
474
+ number | ExpressionSpecification,
475
+ number | ExpressionSpecification,
476
+ ...(number | ExpressionSpecification)[]
477
+ ] | [
478
+ "abs",
479
+ number | ExpressionSpecification
480
+ ] | [
481
+ "acos",
482
+ number | ExpressionSpecification
483
+ ] | [
484
+ "asin",
485
+ number | ExpressionSpecification
486
+ ] | [
487
+ "atan",
488
+ number | ExpressionSpecification
489
+ ] | [
490
+ "ceil",
491
+ number | ExpressionSpecification
492
+ ] | [
493
+ "cos",
494
+ number | ExpressionSpecification
495
+ ] | [
496
+ "distance",
497
+ Record<string, unknown> | ExpressionSpecification
498
+ ] | [
499
+ "ExpressionSpecification"
500
+ ] | [
501
+ "floor",
502
+ number | ExpressionSpecification
503
+ ] | [
504
+ "ln",
505
+ number | ExpressionSpecification
506
+ ] | [
507
+ "ln2"
508
+ ] | [
509
+ "log10",
510
+ number | ExpressionSpecification
511
+ ] | [
512
+ "log2",
513
+ number | ExpressionSpecification
514
+ ] | [
515
+ "max",
516
+ number | ExpressionSpecification,
517
+ ...(number | ExpressionSpecification)[]
518
+ ] | [
519
+ "min",
520
+ number | ExpressionSpecification,
521
+ ...(number | ExpressionSpecification)[]
522
+ ] | [
523
+ "pi"
524
+ ] | [
525
+ "round",
526
+ number | ExpressionSpecification
527
+ ] | [
528
+ "sin",
529
+ number | ExpressionSpecification
530
+ ] | [
531
+ "sqrt",
532
+ number | ExpressionSpecification
533
+ ] | [
534
+ "tan",
535
+ number | ExpressionSpecification
536
+ ] | [
537
+ "zoom"
538
+ ] | [
539
+ "heatmap-density"
540
+ ];
541
+ export declare type ExpressionFilterSpecification = boolean | ExpressionSpecification;
542
+ export declare type LegacyFilterSpecification = [
543
+ "has",
544
+ string
279
545
  ] | [
280
546
  "!has",
281
- ...FilterSpecification[],
282
- FilterSpecificationInputType
547
+ string
548
+ ] | [
549
+ "==",
550
+ string,
551
+ string | number | boolean
552
+ ] | [
553
+ "!=",
554
+ string,
555
+ string | number | boolean
556
+ ] | [
557
+ ">",
558
+ string,
559
+ string | number | boolean
560
+ ] | [
561
+ ">=",
562
+ string,
563
+ string | number | boolean
564
+ ] | [
565
+ "<",
566
+ string,
567
+ string | number | boolean
568
+ ] | [
569
+ "<=",
570
+ string,
571
+ string | number | boolean
572
+ ] | [
573
+ "in",
574
+ string,
575
+ ...(string | number | boolean)[]
576
+ ] | [
577
+ "!in",
578
+ string,
579
+ ...(string | number | boolean)[]
580
+ ] | [
581
+ "all",
582
+ ...LegacyFilterSpecification[]
583
+ ] | [
584
+ "any",
585
+ ...LegacyFilterSpecification[]
283
586
  ] | [
284
587
  "none",
285
- ...FilterSpecification[],
286
- FilterSpecificationInputType
287
- ] | Array<string | FilterSpecification>;
588
+ ...LegacyFilterSpecification[]
589
+ ];
590
+ export declare type FilterSpecification = ExpressionFilterSpecification | LegacyFilterSpecification;
288
591
  export declare type TransitionSpecification = {
289
592
  duration?: number;
290
593
  delay?: number;
@@ -365,9 +668,8 @@ export declare type CompositeFunctionSpecification<T> = {
365
668
  property: string;
366
669
  default?: T;
367
670
  };
368
- export declare type ExpressionSpecificationArray = Array<unknown>;
369
- export declare type PropertyValueSpecification<T> = T | CameraFunctionSpecification<T> | ExpressionSpecificationArray;
370
- export declare type DataDrivenPropertyValueSpecification<T> = T | CameraFunctionSpecification<T> | SourceFunctionSpecification<T> | CompositeFunctionSpecification<T> | ExpressionSpecificationArray;
671
+ export declare type PropertyValueSpecification<T> = T | CameraFunctionSpecification<T> | ExpressionSpecification;
672
+ export declare type DataDrivenPropertyValueSpecification<T> = T | CameraFunctionSpecification<T> | SourceFunctionSpecification<T> | CompositeFunctionSpecification<T> | ExpressionSpecification;
371
673
  export declare type StyleSpecification = {
372
674
  "version": 8;
373
675
  "name"?: string;
@@ -571,7 +873,7 @@ export declare type LineLayerSpecification = {
571
873
  "line-blur"?: DataDrivenPropertyValueSpecification<number>;
572
874
  "line-dasharray"?: PropertyValueSpecification<Array<number>>;
573
875
  "line-pattern"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
574
- "line-gradient"?: ExpressionSpecificationArray;
876
+ "line-gradient"?: ExpressionSpecification;
575
877
  };
576
878
  };
577
879
  export declare type SymbolLayerSpecification = {
@@ -604,7 +906,7 @@ export declare type SymbolLayerSpecification = {
604
906
  ]>;
605
907
  "icon-image"?: DataDrivenPropertyValueSpecification<ResolvedImageSpecification>;
606
908
  "icon-rotate"?: DataDrivenPropertyValueSpecification<number>;
607
- "icon-padding"?: PropertyValueSpecification<number>;
909
+ "icon-padding"?: DataDrivenPropertyValueSpecification<PaddingSpecification>;
608
910
  "icon-keep-upright"?: PropertyValueSpecification<boolean>;
609
911
  "icon-offset"?: DataDrivenPropertyValueSpecification<[
610
912
  number,
@@ -709,7 +1011,7 @@ export declare type HeatmapLayerSpecification = {
709
1011
  "heatmap-radius"?: DataDrivenPropertyValueSpecification<number>;
710
1012
  "heatmap-weight"?: DataDrivenPropertyValueSpecification<number>;
711
1013
  "heatmap-intensity"?: PropertyValueSpecification<number>;
712
- "heatmap-color"?: ExpressionSpecificationArray;
1014
+ "heatmap-color"?: ExpressionSpecification;
713
1015
  "heatmap-opacity"?: PropertyValueSpecification<number>;
714
1016
  };
715
1017
  };
@@ -1197,7 +1499,28 @@ export declare class Formatted {
1197
1499
  static factory(text: Formatted | string): Formatted;
1198
1500
  toString(): string;
1199
1501
  }
1200
- export declare type Value = null | string | boolean | number | Color | Collator | Formatted | ResolvedImage | ReadonlyArray<Value> | {
1502
+ export declare class Padding {
1503
+ /** Padding values are in CSS order: top, right, bottom, left */
1504
+ values: [
1505
+ number,
1506
+ number,
1507
+ number,
1508
+ number
1509
+ ];
1510
+ constructor(values: [
1511
+ number,
1512
+ number,
1513
+ number,
1514
+ number
1515
+ ]);
1516
+ /**
1517
+ * Numeric padding values
1518
+ * @returns A `Padding` instance, or `undefined` if the input is not a valid padding value.
1519
+ */
1520
+ static parse(input?: number | number[] | Padding | null): Padding | void;
1521
+ toString(): string;
1522
+ }
1523
+ export declare type Value = null | string | boolean | number | Color | Collator | Formatted | Padding | ResolvedImage | ReadonlyArray<Value> | {
1201
1524
  readonly [x: string]: Value;
1202
1525
  };
1203
1526
  export declare type InterpolationType = {
@@ -1271,33 +1594,33 @@ export declare type FeatureFilter = {
1271
1594
  };
1272
1595
  export declare type ExpressionType = "data-driven" | "cross-faded" | "cross-faded-data-driven" | "color-ramp" | "data-constant" | "constant";
1273
1596
  export declare type ExpressionParameters = Array<"zoom" | "feature" | "feature-state" | "heatmap-density" | "line-progress">;
1274
- export declare type ExpressionSpecification = {
1597
+ export declare type ExpressionSpecificationDefinition = {
1275
1598
  interpolated: boolean;
1276
1599
  parameters: ExpressionParameters;
1277
1600
  };
1278
1601
  export declare type StylePropertySpecification = {
1279
1602
  type: "number";
1280
1603
  "property-type": ExpressionType;
1281
- expression?: ExpressionSpecification;
1604
+ expression?: ExpressionSpecificationDefinition;
1282
1605
  transition: boolean;
1283
1606
  default?: number;
1284
1607
  } | {
1285
1608
  type: "string";
1286
1609
  "property-type": ExpressionType;
1287
- expression?: ExpressionSpecification;
1610
+ expression?: ExpressionSpecificationDefinition;
1288
1611
  transition: boolean;
1289
1612
  default?: string;
1290
1613
  tokens?: boolean;
1291
1614
  } | {
1292
1615
  type: "boolean";
1293
1616
  "property-type": ExpressionType;
1294
- expression?: ExpressionSpecification;
1617
+ expression?: ExpressionSpecificationDefinition;
1295
1618
  transition: boolean;
1296
1619
  default?: boolean;
1297
1620
  } | {
1298
1621
  type: "enum";
1299
1622
  "property-type": ExpressionType;
1300
- expression?: ExpressionSpecification;
1623
+ expression?: ExpressionSpecificationDefinition;
1301
1624
  values: {
1302
1625
  [_: string]: {};
1303
1626
  };
@@ -1306,7 +1629,7 @@ export declare type StylePropertySpecification = {
1306
1629
  } | {
1307
1630
  type: "color";
1308
1631
  "property-type": ExpressionType;
1309
- expression?: ExpressionSpecification;
1632
+ expression?: ExpressionSpecificationDefinition;
1310
1633
  transition: boolean;
1311
1634
  default?: string;
1312
1635
  overridable: boolean;
@@ -1314,7 +1637,7 @@ export declare type StylePropertySpecification = {
1314
1637
  type: "array";
1315
1638
  value: "number";
1316
1639
  "property-type": ExpressionType;
1317
- expression?: ExpressionSpecification;
1640
+ expression?: ExpressionSpecificationDefinition;
1318
1641
  length?: number;
1319
1642
  transition: boolean;
1320
1643
  default?: Array<number>;
@@ -1322,10 +1645,16 @@ export declare type StylePropertySpecification = {
1322
1645
  type: "array";
1323
1646
  value: "string";
1324
1647
  "property-type": ExpressionType;
1325
- expression?: ExpressionSpecification;
1648
+ expression?: ExpressionSpecificationDefinition;
1326
1649
  length?: number;
1327
1650
  transition: boolean;
1328
1651
  default?: Array<string>;
1652
+ } | {
1653
+ type: "padding";
1654
+ "property-type": ExpressionType;
1655
+ expression?: ExpressionSpecificationDefinition;
1656
+ transition: boolean;
1657
+ default?: number | Array<number>;
1329
1658
  };
1330
1659
  export declare type TimePoint = number;
1331
1660
  export declare type CrossFaded<T> = {
@@ -4769,7 +5098,7 @@ export declare class SourceCache extends Evented {
4769
5098
  * are inside the viewport.
4770
5099
  * @private
4771
5100
  */
4772
- update(transform: Transform, terrain: Terrain): void;
5101
+ update(transform: Transform, terrain?: Terrain): void;
4773
5102
  releaseSymbolFadeTiles(): void;
4774
5103
  _updateRetainedTiles(idealTileIDs: Array<OverscaledTileID>, zoom: number): {
4775
5104
  [_: string]: OverscaledTileID;
@@ -4860,7 +5189,7 @@ export declare type SymbolLayoutProps = {
4860
5189
  ]>;
4861
5190
  "icon-image": DataDrivenProperty<ResolvedImage>;
4862
5191
  "icon-rotate": DataDrivenProperty<number>;
4863
- "icon-padding": DataConstantProperty<number>;
5192
+ "icon-padding": DataDrivenProperty<Padding>;
4864
5193
  "icon-keep-upright": DataConstantProperty<boolean>;
4865
5194
  "icon-offset": DataDrivenProperty<[
4866
5195
  number,
@@ -4916,7 +5245,7 @@ export declare type SymbolLayoutPropsPossiblyEvaluated = {
4916
5245
  ];
4917
5246
  "icon-image": PossiblyEvaluatedPropertyValue<ResolvedImage>;
4918
5247
  "icon-rotate": PossiblyEvaluatedPropertyValue<number>;
4919
- "icon-padding": number;
5248
+ "icon-padding": PossiblyEvaluatedPropertyValue<Padding>;
4920
5249
  "icon-keep-upright": boolean;
4921
5250
  "icon-offset": PossiblyEvaluatedPropertyValue<[
4922
5251
  number,
@@ -5510,13 +5839,11 @@ export declare class TerrainSourceCache extends Evented {
5510
5839
  */
5511
5840
  getTileByID(id: string): Tile;
5512
5841
  /**
5513
- * searches for the corresponding current renderable terrain-tiles
5842
+ * Searches for the corresponding current renderable terrain-tiles
5514
5843
  * @param {OverscaledTileID} tileID - the tile to look for
5515
- * @returns {[_:string]: Tile} - the tiles that were found
5844
+ * @returns {Record<string, OverscaledTileID>} - the tiles that were found
5516
5845
  */
5517
- getTerrainCoords(tileID: OverscaledTileID): {
5518
- [_: string]: OverscaledTileID;
5519
- };
5846
+ getTerrainCoords(tileID: OverscaledTileID): Record<string, OverscaledTileID>;
5520
5847
  /**
5521
5848
  * find the covering raster-dem tile
5522
5849
  * @param {OverscaledTileID} tileID - the tile to look for
@@ -5531,33 +5858,6 @@ export declare class TerrainSourceCache extends Evented {
5531
5858
  */
5532
5859
  tilesAfterTime(time?: number): Array<Tile>;
5533
5860
  }
5534
- /**
5535
- * This is the main class which handles most of the 3D Terrain logic. It has the follwing topics:
5536
- * 1) loads raster-dem tiles via the internal sourceCache this.sourceCache
5537
- * 2) creates a depth-framebuffer, which is used to calculate the visibility of coordinates
5538
- * 3) creates a coords-framebuffer, which is used the get to tile-coordinate for a screen-pixel
5539
- * 4) stores all render-to-texture tiles in the this.sourceCache._tiles
5540
- * 5) calculates the elevation for a spezific tile-coordinate
5541
- * 6) creates a terrain-mesh
5542
- *
5543
- * A note about the GPU resource-usage:
5544
- * Framebuffers:
5545
- * - one for the depth & coords framebuffer with the size of the map-div.
5546
- * - one for rendering a tile to texture with the size of tileSize (= 512x512).
5547
- * Textures:
5548
- * - one texture for an empty raster-dem tile with size 1x1
5549
- * - one texture for an empty depth-buffer, when terrain is disabled with size 1x1
5550
- * - one texture for an each loaded raster-dem with size of the source.tileSize
5551
- * - one texture for the coords-framebuffer with the size of the map-div.
5552
- * - one texture for the depth-framebuffer with the size of the map-div.
5553
- * - one texture for the encoded tile-coords with the size 2*tileSize (=1024x1024)
5554
- * - finally for each render-to-texture tile (= this._tiles) a set of textures
5555
- * for each render stack (The stack-concept is documented in painter.ts).
5556
- * Normally there exists 1-3 Textures per tile, depending on the stylesheet.
5557
- * Each Textures has the size 2*tileSize (= 1024x1024). Also there exists a
5558
- * cache of the last 150 newest rendered tiles.
5559
- *
5560
- */
5561
5861
  export declare type TerrainData = {
5562
5862
  "u_depth": number;
5563
5863
  "u_terrain": number;
@@ -5845,7 +6145,7 @@ export declare class Transform {
5845
6145
  * get the elevation from terrain for the current zoomlevel.
5846
6146
  * @param lnglat the location
5847
6147
  * @param terrain the terrain
5848
- * @returns {Number} elevation in meters
6148
+ * @returns {number} elevation in meters
5849
6149
  */
5850
6150
  getElevation(lnglat: LngLat, terrain: Terrain): number;
5851
6151
  /**
@@ -5906,8 +6206,8 @@ export declare class Transform {
5906
6206
  /**
5907
6207
  * Given a coordinate, return the screen point that corresponds to it
5908
6208
  * @param {Coordinate} coord
5909
- * @params {number} elevation default = 0
5910
- * @params {mat4} pixelMatrix, default = this.pixelMatrix
6209
+ * @param {number} elevation default = 0
6210
+ * @param {mat4} pixelMatrix, default = this.pixelMatrix
5911
6211
  * @returns {Point} screen point
5912
6212
  * @private
5913
6213
  */
@@ -7133,7 +7433,7 @@ export declare class CollisionIndex {
7133
7433
  queryRenderedSymbols(viewportQueryGeometry: Array<Point>): {};
7134
7434
  insertCollisionBox(collisionBox: Array<number>, overlapMode: OverlapMode, ignorePlacement: boolean, bucketInstanceId: number, featureIndex: number, collisionGroupID: number): void;
7135
7435
  insertCollisionCircles(collisionCircles: Array<number>, overlapMode: OverlapMode, ignorePlacement: boolean, bucketInstanceId: number, featureIndex: number, collisionGroupID: number): void;
7136
- projectAndGetPerspectiveRatio(posMatrix: mat4, x: number, y: number, getElevation: (x: number, y: number) => number): {
7436
+ projectAndGetPerspectiveRatio(posMatrix: mat4, x: number, y: number, getElevation?: (x: number, y: number) => number): {
7137
7437
  point: Point;
7138
7438
  perspectiveRatio: number;
7139
7439
  };
@@ -7607,9 +7907,12 @@ export declare class TouchPanHandler {
7607
7907
  _minTouches: number;
7608
7908
  _clickTolerance: number;
7609
7909
  _sum: Point;
7910
+ _map: Map;
7911
+ _cancelCooperativeMessage: boolean;
7610
7912
  constructor(options: {
7611
7913
  clickTolerance: number;
7612
- });
7914
+ cooperativeGestures: boolean | GestureOptions;
7915
+ }, map: Map);
7613
7916
  reset(): void;
7614
7917
  touchstart(e: TouchEvent, points: Array<Point>, mapTouches: Array<Touch>): {
7615
7918
  around: Point;
@@ -8650,7 +8953,11 @@ export declare class TouchPitchHandler extends TwoTouchHandler {
8650
8953
  Point,
8651
8954
  Point
8652
8955
  ];
8956
+ _map: Map;
8957
+ _currentTouchCount: number;
8958
+ constructor(map: Map);
8653
8959
  reset(): void;
8960
+ touchstart(e: TouchEvent, points: Array<Point>, mapTouches: Array<Touch>): void;
8654
8961
  _start(points: [
8655
8962
  Point,
8656
8963
  Point
@@ -9058,6 +9365,7 @@ export declare type MapOptions = {
9058
9365
  doubleClickZoom?: boolean;
9059
9366
  touchZoomRotate?: boolean;
9060
9367
  touchPitch?: boolean;
9368
+ cooperativeGestures?: boolean | GestureOptions;
9061
9369
  trackResize?: boolean;
9062
9370
  center?: LngLatLike;
9063
9371
  zoom?: number;
@@ -9078,6 +9386,11 @@ export declare type MapOptions = {
9078
9386
  pitchWithRotate?: boolean;
9079
9387
  pixelRatio?: number;
9080
9388
  };
9389
+ export declare type GestureOptions = {
9390
+ windowsHelpText?: string;
9391
+ macHelpText?: string;
9392
+ mobileHelpText?: string;
9393
+ };
9081
9394
  export declare type Complete<T> = {
9082
9395
  [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : (T[P] | undefined);
9083
9396
  };
@@ -9093,6 +9406,9 @@ export declare class Map extends Camera {
9093
9406
  [_: string]: HTMLElement;
9094
9407
  };
9095
9408
  _interactive: boolean;
9409
+ _cooperativeGestures: boolean | GestureOptions;
9410
+ _cooperativeGesturesScreen: HTMLElement;
9411
+ _metaPress: boolean;
9096
9412
  _showTileBoundaries: boolean;
9097
9413
  _showCollisionBoxes: boolean;
9098
9414
  _showPadding: boolean;
@@ -9495,7 +9811,7 @@ export declare class Map extends Camera {
9495
9811
  * | [`dataabort`](#map.event:dataabort) | |
9496
9812
  * | [`sourcedataabort`](#map.event:sourcedataabort) | |
9497
9813
  *
9498
- * @param {string | Listener} layerIdOrListener The ID of a style layer or a listener if no ID is provided. Event will only be triggered if its location
9814
+ * @param {string | Listener} layer The ID of a style layer or a listener if no ID is provided. Event will only be triggered if its location
9499
9815
  * is within a visible feature in this layer. The event will have a `features` property containing
9500
9816
  * an array of the matching features. If `layerIdOrListener` is not supplied, the event will not have a `features` property.
9501
9817
  * Please note that many event types are not compatible with the optional `layerIdOrListener` parameter.
@@ -9562,7 +9878,7 @@ export declare class Map extends Camera {
9562
9878
  * a visible portion of the specified layer from outside that layer or outside the map canvas. `mouseleave`
9563
9879
  * and `mouseout` events are triggered when the cursor leaves a visible portion of the specified layer, or leaves
9564
9880
  * the map canvas.
9565
- * @param {string} layerIdOrListener The ID of a style layer or a listener if no ID is provided. Only events whose location is within a visible
9881
+ * @param {string} layer The ID of a style layer or a listener if no ID is provided. Only events whose location is within a visible
9566
9882
  * feature in this layer will trigger the listener. The event will have a `features` property containing
9567
9883
  * an array of the matching features.
9568
9884
  * @param {Function} listener The function to be called when the event is fired.
@@ -9586,7 +9902,7 @@ export declare class Map extends Camera {
9586
9902
  * Removes an event listener for layer-specific events previously added with `Map#on`.
9587
9903
  *
9588
9904
  * @param {string} type The event type previously used to install the listener.
9589
- * @param {string} layerIdOrListener The layer ID or listener previously used to install the listener.
9905
+ * @param {string} layer The layer ID or listener previously used to install the listener.
9590
9906
  * @param {Function} listener The function previously installed as a listener.
9591
9907
  * @returns {Map} `this`
9592
9908
  */
@@ -10023,7 +10339,10 @@ export declare class Map extends Camera {
10023
10339
  * A layer defines how data from a specified source will be styled. Read more about layer types
10024
10340
  * and available paint and layout properties in the [MapLibre Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#layers).
10025
10341
  *
10026
- * @param {Object | CustomLayerInterface} layer The layer to add, conforming to either the MapLibre Style Specification's [layer definition](https://maplibre.org/maplibre-gl-js-docs/style-spec/#layers) or, less commonly, the {@link CustomLayerInterface} specification.
10342
+ * TODO: JSDoc can't pass @param {(LayerSpecification & {source?: string | SourceSpecification}) | CustomLayerInterface} layer The layer to add,
10343
+ * @param {Object} layer
10344
+ * conforming to either the MapLibre Style Specification's [layer definition](https://maplibre.org/maplibre-gl-js-docs/style-spec/#layers) or,
10345
+ * less commonly, the {@link CustomLayerInterface} specification.
10027
10346
  * The MapLibre Style Specification's layer definition is appropriate for most layers.
10028
10347
  *
10029
10348
  * @param {string} layer.id A unique identifer that you define.
@@ -10031,10 +10350,10 @@ export declare class Map extends Camera {
10031
10350
  * A list of layer types is available in the [MapLibre Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/layers/#type).
10032
10351
  *
10033
10352
  * (This can also be `custom`. For more information, see {@link CustomLayerInterface}.)
10034
- * @param {string | Object} [layer.source] The data source for the layer.
10353
+ * @param {string | SourceSpecification} [layer.source] The data source for the layer.
10035
10354
  * Reference a source that has _already been defined_ using the source's unique id.
10036
10355
  * Reference a _new source_ using a source object (as defined in the [MapLibre Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/sources/)) directly.
10037
- * This is **required** for all `layer.type` options _except_ for `custom`.
10356
+ * This is **required** for all `layer.type` options _except_ for `custom` and `background`.
10038
10357
  * @param {string} [layer.sourceLayer] (optional) The name of the source layer within the specified `layer.source` to use for this style layer.
10039
10358
  * This is only applicable for vector tile sources and is **required** when `layer.source` is of the type `vector`.
10040
10359
  * @param {array} [layer.filter] (optional) An expression specifying conditions on source features.
@@ -10125,7 +10444,9 @@ export declare class Map extends Camera {
10125
10444
  * @see [Add a vector tile source](https://maplibre.org/maplibre-gl-js-docs/example/vector-source/)
10126
10445
  * @see [Add a WMS source](https://maplibre.org/maplibre-gl-js-docs/example/wms/)
10127
10446
  */
10128
- addLayer(layer: LayerSpecification | CustomLayerInterface, beforeId?: string): this;
10447
+ addLayer(layer: (LayerSpecification & {
10448
+ source?: string | SourceSpecification;
10449
+ }) | CustomLayerInterface, beforeId?: string): this;
10129
10450
  /**
10130
10451
  * Moves a layer to a different z-position.
10131
10452
  *
@@ -10431,11 +10752,13 @@ export declare class Map extends Camera {
10431
10752
  getCanvas(): HTMLCanvasElement;
10432
10753
  _containerDimensions(): number[];
10433
10754
  _setupContainer(): void;
10755
+ _setupCooperativeGestures(): void;
10434
10756
  _resizeCanvas(width: number, height: number, pixelRatio: number): void;
10435
10757
  _setupPainter(): void;
10436
10758
  _contextLost(event: any): void;
10437
10759
  _contextRestored(event: any): void;
10438
10760
  _onMapScroll(event: any): boolean;
10761
+ _onCooperativeGesture(event: any, metaPress: any, touches: any): boolean;
10439
10762
  /**
10440
10763
  * Returns a Boolean indicating whether the map is fully loaded.
10441
10764
  *
@@ -11394,45 +11717,10 @@ declare const exported: {
11394
11717
  */
11395
11718
  removeProtocol(customProtocol: string): void;
11396
11719
  };
11397
- /**
11398
- * Test whether the browser supports MapLibre GL JS.
11399
- *
11400
- * @function supported
11401
- * @param {Object} [options]
11402
- * @param {boolean} [options.failIfMajorPerformanceCaveat=false] If `true`,
11403
- * the function will return `false` if the performance of MapLibre GL JS would
11404
- * be dramatically worse than expected (e.g. a software WebGL renderer would be used).
11405
- * @return {boolean}
11406
- * @example
11407
- * // Show an alert if the browser does not support MapLibre GL
11408
- * if (!maplibregl.supported()) {
11409
- * alert('Your browser does not support MapLibre GL');
11410
- * }
11411
- * @see [Check for browser support](https://maplibre.org/maplibre-gl-js-docs/example/check-for-support/)
11412
- */
11413
- /**
11414
- * Sets the map's [RTL text plugin](https://www.mapbox.com/mapbox-gl-js/plugins/#mapbox-gl-rtl-text).
11415
- * Necessary for supporting the Arabic and Hebrew languages, which are written right-to-left.
11416
- *
11417
- * @function setRTLTextPlugin
11418
- * @param {string} pluginURL URL pointing to the Mapbox RTL text plugin source.
11419
- * @param {Function} callback Called with an error argument if there is an error.
11420
- * @param {boolean} lazy If set to `true`, mapboxgl will defer loading the plugin until rtl text is encountered,
11421
- * rtl text will then be rendered only after the plugin finishes loading.
11422
- * @example
11423
- * maplibregl.setRTLTextPlugin('https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.0/mapbox-gl-rtl-text.js');
11424
- * @see [Add support for right-to-left scripts](https://maplibre.org/maplibre-gl-js-docs/example/mapbox-gl-rtl-text/)
11425
- */
11426
- /**
11427
- * Gets the map's [RTL text plugin](https://www.mapbox.com/mapbox-gl-js/plugins/#mapbox-gl-rtl-text) status.
11428
- * The status can be `unavailable` (i.e. not requested or removed), `loading`, `loaded` or `error`.
11429
- * If the status is `loaded` and the plugin is requested again, an error will be thrown.
11430
- *
11431
- * @function getRTLTextPluginStatus
11432
- * @example
11433
- * const pluginStatus = maplibregl.getRTLTextPluginStatus();
11434
- */
11435
- export default exported;
11720
+
11721
+ export {
11722
+ exported as default,
11723
+ };
11436
11724
 
11437
11725
  export as namespace maplibregl;
11438
11726