maplibre-gl 3.2.1 → 3.3.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.
Files changed (88) hide show
  1. package/build/generate-struct-arrays.ts +6 -3
  2. package/build/generate-style-code.ts +7 -8
  3. package/dist/maplibre-gl-csp-worker.js +1 -1
  4. package/dist/maplibre-gl-csp-worker.js.map +1 -1
  5. package/dist/maplibre-gl-csp.js +1 -1
  6. package/dist/maplibre-gl-csp.js.map +1 -1
  7. package/dist/maplibre-gl-dev.js +565 -243
  8. package/dist/maplibre-gl-dev.js.map +1 -1
  9. package/dist/maplibre-gl.d.ts +111 -57
  10. package/dist/maplibre-gl.js +4 -4
  11. package/dist/maplibre-gl.js.map +1 -1
  12. package/package.json +20 -20
  13. package/src/data/array_types.g.ts +110 -24
  14. package/src/data/bucket/circle_bucket.ts +1 -0
  15. package/src/data/bucket/line_bucket.ts +1 -0
  16. package/src/data/bucket/symbol_attributes.ts +7 -1
  17. package/src/data/bucket/symbol_bucket.ts +5 -1
  18. package/src/data/feature_index.ts +1 -0
  19. package/src/data/program_configuration.ts +1 -0
  20. package/src/data/segment.ts +2 -0
  21. package/src/geo/transform.ts +1 -0
  22. package/src/gl/context.ts +1 -0
  23. package/src/gl/framebuffer.ts +1 -0
  24. package/src/gl/index_buffer.ts +1 -0
  25. package/src/gl/render_pool.ts +2 -1
  26. package/src/gl/vertex_buffer.ts +1 -0
  27. package/src/render/draw_symbol.ts +8 -9
  28. package/src/render/image_atlas.ts +1 -0
  29. package/src/render/line_atlas.ts +1 -0
  30. package/src/render/painter.ts +1 -0
  31. package/src/render/program.ts +1 -0
  32. package/src/render/render_to_texture.ts +31 -14
  33. package/src/render/terrain.ts +3 -0
  34. package/src/render/texture.ts +1 -0
  35. package/src/render/uniform_binding.ts +2 -0
  36. package/src/render/vertex_array_object.ts +1 -0
  37. package/src/shaders/symbol_sdf.fragment.glsl +9 -3
  38. package/src/shaders/symbol_sdf.fragment.glsl.g.ts +1 -1
  39. package/src/source/canvas_source.ts +1 -3
  40. package/src/source/geojson_source.ts +1 -3
  41. package/src/source/image_source.ts +2 -4
  42. package/src/source/source_cache.ts +1 -0
  43. package/src/source/source_state.ts +1 -0
  44. package/src/source/terrain_source_cache.ts +1 -0
  45. package/src/source/tile.ts +1 -0
  46. package/src/source/tile_cache.ts +1 -1
  47. package/src/source/tile_id.ts +1 -0
  48. package/src/source/vector_tile_worker_source.test.ts +79 -0
  49. package/src/source/vector_tile_worker_source.ts +26 -1
  50. package/src/source/worker_source.ts +1 -0
  51. package/src/style/evaluation_parameters.ts +1 -0
  52. package/src/style/properties.ts +18 -0
  53. package/src/style/style.ts +1 -0
  54. package/src/style/style_glyph.ts +1 -0
  55. package/src/style/style_layer/background_style_layer_properties.g.ts +1 -6
  56. package/src/style/style_layer/circle_style_layer_properties.g.ts +1 -6
  57. package/src/style/style_layer/fill_extrusion_style_layer_properties.g.ts +1 -6
  58. package/src/style/style_layer/fill_style_layer_properties.g.ts +1 -6
  59. package/src/style/style_layer/heatmap_style_layer_properties.g.ts +1 -6
  60. package/src/style/style_layer/hillshade_style_layer_properties.g.ts +1 -6
  61. package/src/style/style_layer/line_style_layer_properties.g.ts +1 -6
  62. package/src/style/style_layer/raster_style_layer_properties.g.ts +1 -6
  63. package/src/style/style_layer/symbol_style_layer_properties.g.ts +4 -6
  64. package/src/style/style_layer/variable_text_anchor.test.ts +117 -0
  65. package/src/style/style_layer/variable_text_anchor.ts +163 -0
  66. package/src/symbol/collision_index.ts +1 -0
  67. package/src/symbol/grid_index.ts +1 -0
  68. package/src/symbol/placement.ts +52 -40
  69. package/src/symbol/symbol_layout.ts +42 -116
  70. package/src/ui/camera.ts +8 -8
  71. package/src/ui/handler/box_zoom.ts +1 -3
  72. package/src/ui/handler/click_zoom.ts +1 -3
  73. package/src/ui/handler/keyboard.ts +1 -3
  74. package/src/ui/handler/scroll_zoom.ts +1 -3
  75. package/src/ui/handler/shim/dblclick_zoom.ts +1 -3
  76. package/src/ui/handler/shim/drag_pan.ts +1 -3
  77. package/src/ui/handler/shim/drag_rotate.ts +1 -3
  78. package/src/ui/handler/shim/two_fingers_touch.ts +1 -3
  79. package/src/ui/handler/transform-provider.ts +1 -0
  80. package/src/ui/handler/two_fingers_touch.ts +1 -3
  81. package/src/ui/map.ts +7 -6
  82. package/src/util/ajax.test.ts +33 -0
  83. package/src/util/ajax.ts +5 -0
  84. package/src/util/image.ts +1 -0
  85. package/src/util/image_request.ts +2 -2
  86. package/src/util/performance.ts +1 -2
  87. package/src/util/struct_array.ts +5 -1
  88. package/src/util/test/mock_fetch.ts +51 -0
@@ -3,7 +3,7 @@
3
3
  import Point from '@mapbox/point-geometry';
4
4
  import TinySDF from '@mapbox/tiny-sdf';
5
5
  import { VectorTileFeature, VectorTileLayer } from '@mapbox/vector-tile';
6
- import { Color, CompositeExpression, Feature, FeatureFilter, FeatureState, FilterSpecification, Formatted, FormattedSection, GeoJSONSourceSpecification, GlobalProperties, ICanonicalTileID, IMercatorCoordinate, ImageSourceSpecification, InterpolationType, LayerSpecification, LightSpecification, Padding, PromoteIdSpecification, PropertyValueSpecification, RasterDEMSourceSpecification, RasterSourceSpecification, ResolvedImage, SourceExpression, SourceSpecification, SpriteSpecification, StylePropertyExpression, StylePropertySpecification, StyleSpecification, TerrainSpecification, TransitionSpecification, VectorSourceSpecification, VideoSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
6
+ import { Color, CompositeExpression, Feature, FeatureFilter, FeatureState, FilterSpecification, Formatted, FormattedSection, GeoJSONSourceSpecification, GlobalProperties, ICanonicalTileID, IMercatorCoordinate, ImageSourceSpecification, InterpolationType, LayerSpecification, LightSpecification, Padding, PromoteIdSpecification, PropertyValueSpecification, RasterDEMSourceSpecification, RasterSourceSpecification, ResolvedImage, SourceExpression, SourceSpecification, SpriteSpecification, StylePropertyExpression, StylePropertySpecification, StyleSpecification, TerrainSpecification, TransitionSpecification, VariableAnchorOffsetCollection, VectorSourceSpecification, VideoSourceSpecification } from '@maplibre/maplibre-gl-style-spec';
7
7
  import { mat2, mat4, vec4 } from 'gl-matrix';
8
8
  import KDBush from 'kdbush';
9
9
  import { PotpackBox } from 'potpack';
@@ -75,6 +75,10 @@ export type RequestParameters = {
75
75
  * If `true`, Resource Timing API information will be collected for these transformed requests and returned in a resourceTiming property of relevant data events.
76
76
  */
77
77
  collectResourceTiming?: boolean;
78
+ /**
79
+ * Parameters supported only by browser fetch API. Property of the Request interface contains the cache mode of the request. It controls how the request will interact with the browser's HTTP cache. (https://developer.mozilla.org/en-US/docs/Web/API/Request/cache)
80
+ */
81
+ cache?: RequestCache;
78
82
  };
79
83
  /**
80
84
  * The response callback used in various places
@@ -426,6 +430,7 @@ export type CrossFaded<T> = {
426
430
  from: T;
427
431
  };
428
432
  /**
433
+ * @internal
429
434
  * Implementations of the `Property` interface:
430
435
  *
431
436
  * * Hold metadata about a property that's independent of any specific value: stuff like the type of the value,
@@ -504,6 +509,7 @@ export declare class Layout<Props> {
504
509
  [K in keyof Props]: PropertyValue<any, PossiblyEvaluatedPropertyValue<any>>;
505
510
  };
506
511
  constructor(properties: Properties<Props>);
512
+ hasValue<S extends keyof Props>(name: S): boolean;
507
513
  getValue<S extends keyof Props>(name: S): any;
508
514
  setValue<S extends keyof Props>(name: S, value: any): void;
509
515
  serialize(): any;
@@ -611,6 +617,7 @@ declare const viewTypes: {
611
617
  Float32: Float32ArrayConstructor;
612
618
  };
613
619
  /**
620
+ * @internal
614
621
  * A view type size
615
622
  */
616
623
  export type ViewType = keyof typeof viewTypes;
@@ -628,6 +635,7 @@ export declare class Struct {
628
635
  constructor(structArray: StructArray, index: number);
629
636
  }
630
637
  /**
638
+ * @internal
631
639
  * A struct array memeber
632
640
  */
633
641
  export type StructArrayMember = {
@@ -784,7 +792,7 @@ export declare class StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 extends StructArra
784
792
  emplaceBack(v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number, v16: number): number;
785
793
  emplace(i: number, v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number, v16: number): number;
786
794
  }
787
- export declare class StructArrayLayout8i15ui1ul4f68 extends StructArray {
795
+ export declare class StructArrayLayout8i15ui1ul2f2ui64 extends StructArray {
788
796
  uint8: Uint8Array;
789
797
  int16: Int16Array;
790
798
  uint16: Uint16Array;
@@ -801,6 +809,14 @@ export declare class StructArrayLayout1f4 extends StructArray {
801
809
  emplaceBack(v0: number): number;
802
810
  emplace(i: number, v0: number): number;
803
811
  }
812
+ export declare class StructArrayLayout1ui2f12 extends StructArray {
813
+ uint8: Uint8Array;
814
+ uint16: Uint16Array;
815
+ float32: Float32Array;
816
+ _refreshViews(): void;
817
+ emplaceBack(v0: number, v1: number, v2: number): number;
818
+ emplace(i: number, v0: number, v1: number, v2: number): number;
819
+ }
804
820
  export declare class StructArrayLayout1ul2ui8 extends StructArray {
805
821
  uint8: Uint8Array;
806
822
  uint32: Uint32Array;
@@ -901,12 +917,12 @@ export declare class SymbolInstanceStruct extends Struct {
901
917
  get crossTileID(): number;
902
918
  set crossTileID(x: number);
903
919
  get textBoxScale(): number;
904
- get textOffset0(): number;
905
- get textOffset1(): number;
906
920
  get collisionCircleDiameter(): number;
921
+ get textAnchorOffsetStartIndex(): number;
922
+ get textAnchorOffsetEndIndex(): number;
907
923
  }
908
924
  export type SymbolInstance = SymbolInstanceStruct;
909
- export declare class SymbolInstanceArray extends StructArrayLayout8i15ui1ul4f68 {
925
+ export declare class SymbolInstanceArray extends StructArrayLayout8i15ui1ul2f2ui64 {
910
926
  /**
911
927
  * Return the SymbolInstanceStruct at the given location in the array.
912
928
  * @param index The index of the element.
@@ -921,6 +937,20 @@ export declare class SymbolLineVertexArray extends StructArrayLayout3i6 {
921
937
  gety(index: number): number;
922
938
  gettileUnitDistanceFromAnchor(index: number): number;
923
939
  }
940
+ export declare class TextAnchorOffsetStruct extends Struct {
941
+ _structArray: TextAnchorOffsetArray;
942
+ get textAnchor(): number;
943
+ get textOffset0(): number;
944
+ get textOffset1(): number;
945
+ }
946
+ export type TextAnchorOffset = TextAnchorOffsetStruct;
947
+ export declare class TextAnchorOffsetArray extends StructArrayLayout1ui2f12 {
948
+ /**
949
+ * Return the TextAnchorOffsetStruct at the given location in the array.
950
+ * @param index The index of the element.
951
+ */
952
+ get(index: number): TextAnchorOffsetStruct;
953
+ }
924
954
  export declare class FeatureIndexStruct extends Struct {
925
955
  _structArray: FeatureIndexArray;
926
956
  get featureIndex(): number;
@@ -1375,6 +1405,7 @@ export declare class UniformMatrix4f extends Uniform<mat4> {
1375
1405
  set(v: mat4): void;
1376
1406
  }
1377
1407
  /**
1408
+ * @internal
1378
1409
  * A uniform bindings
1379
1410
  */
1380
1411
  export type UniformBindings = {
@@ -1661,6 +1692,7 @@ export type GlyphMetrics = {
1661
1692
  advance: number;
1662
1693
  };
1663
1694
  /**
1695
+ * @internal
1664
1696
  * A style glyph type
1665
1697
  */
1666
1698
  export type StyleGlyph = {
@@ -2278,6 +2310,7 @@ export declare class DEMData {
2278
2310
  backfillBorder(borderTile: DEMData, dx: number, dy: number): void;
2279
2311
  }
2280
2312
  /**
2313
+ * @internal
2281
2314
  * The worker tile's result type
2282
2315
  */
2283
2316
  export type WorkerTileResult = {
@@ -2399,9 +2432,7 @@ export declare class ImageSource extends Evented implements Source {
2399
2432
  boundsSegments: SegmentVector;
2400
2433
  _loaded: boolean;
2401
2434
  _request: Cancelable;
2402
- /**
2403
- * @hidden
2404
- */
2435
+ /** @internal */
2405
2436
  constructor(id: string, options: ImageSourceSpecification | VideoSourceSpecification | CanvasSourceSpecification, dispatcher: Dispatcher, eventedParent: Evented);
2406
2437
  load: (newCoordinates?: Coordinates, successCallback?: () => void) => void;
2407
2438
  loaded(): boolean;
@@ -2485,9 +2516,7 @@ export declare class CanvasSource extends ImageSource {
2485
2516
  */
2486
2517
  pause: () => void;
2487
2518
  _playing: boolean;
2488
- /**
2489
- * @hidden
2490
- */
2519
+ /** @internal */
2491
2520
  constructor(id: string, options: CanvasSourceSpecification, dispatcher: Dispatcher, eventedParent: Evented);
2492
2521
  load: () => void;
2493
2522
  /**
@@ -2773,6 +2802,7 @@ export type SymbolLayoutProps = {
2773
2802
  "text-justify": DataDrivenProperty<"auto" | "left" | "center" | "right">;
2774
2803
  "text-radial-offset": DataDrivenProperty<number>;
2775
2804
  "text-variable-anchor": DataConstantProperty<Array<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">>;
2805
+ "text-variable-anchor-offset": DataDrivenProperty<VariableAnchorOffsetCollection>;
2776
2806
  "text-anchor": DataDrivenProperty<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
2777
2807
  "text-max-angle": DataConstantProperty<number>;
2778
2808
  "text-writing-mode": DataConstantProperty<Array<"horizontal" | "vertical">>;
@@ -2829,6 +2859,7 @@ export type SymbolLayoutPropsPossiblyEvaluated = {
2829
2859
  "text-justify": PossiblyEvaluatedPropertyValue<"auto" | "left" | "center" | "right">;
2830
2860
  "text-radial-offset": PossiblyEvaluatedPropertyValue<number>;
2831
2861
  "text-variable-anchor": Array<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
2862
+ "text-variable-anchor-offset": PossiblyEvaluatedPropertyValue<VariableAnchorOffsetCollection>;
2832
2863
  "text-anchor": PossiblyEvaluatedPropertyValue<"center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right">;
2833
2864
  "text-max-angle": number;
2834
2865
  "text-writing-mode": Array<"horizontal" | "vertical">;
@@ -3052,6 +3083,7 @@ export declare class SymbolBucket implements Bucket {
3052
3083
  lineVertexArray: SymbolLineVertexArray;
3053
3084
  features: Array<SymbolFeature>;
3054
3085
  symbolInstances: SymbolInstanceArray;
3086
+ textAnchorOffsets: TextAnchorOffsetArray;
3055
3087
  collisionArrays: Array<CollisionArrays>;
3056
3088
  sortKeyRanges: Array<SortKeyRange>;
3057
3089
  pixelRatio: number;
@@ -3282,20 +3314,46 @@ export declare class RenderToTexture {
3282
3314
  painter: Painter;
3283
3315
  terrain: Terrain;
3284
3316
  pool: RenderPool;
3317
+ /**
3318
+ * coordsDescendingInv contains a list of all tiles which should be rendered for one render-to-texture tile
3319
+ * e.g. render 4 raster-tiles with size 256px to the 512px render-to-texture tile
3320
+ */
3285
3321
  _coordsDescendingInv: {
3286
3322
  [_: string]: {
3287
3323
  [_: string]: Array<OverscaledTileID>;
3288
3324
  };
3289
3325
  };
3326
+ /**
3327
+ * create a string representation of all to tiles rendered to render-to-texture tiles
3328
+ * this string representation is used to check if tile should be re-rendered.
3329
+ */
3290
3330
  _coordsDescendingInvStr: {
3291
3331
  [_: string]: {
3292
3332
  [_: string]: string;
3293
3333
  };
3294
3334
  };
3335
+ /**
3336
+ * store for render-stacks
3337
+ * a render stack is a set of layers which should be rendered into one texture
3338
+ * every stylesheet can have multiple stacks. A new stack is created if layers which should
3339
+ * not rendered to texture sit inbetween layers which should rendered to texture. e.g. hillshading or symbols
3340
+ */
3295
3341
  _stacks: Array<Array<string>>;
3342
+ /**
3343
+ * remember the previous processed layer to check if a new stack is needed
3344
+ */
3296
3345
  _prevType: string;
3346
+ /**
3347
+ * a list of tiles that can potentially rendered
3348
+ */
3297
3349
  _renderableTiles: Array<Tile>;
3350
+ /**
3351
+ * a list of tiles that should be rendered to screen in the next render-call
3352
+ */
3298
3353
  _rttTiles: Array<Tile>;
3354
+ /**
3355
+ * a list of all layer-ids which should be rendered
3356
+ */
3299
3357
  _renderableLayerIds: Array<string>;
3300
3358
  constructor(painter: Painter, terrain: Terrain);
3301
3359
  destruct(): void;
@@ -3499,6 +3557,7 @@ export declare class TerrainSourceCache extends Evented {
3499
3557
  tilesAfterTime(time?: number): Array<Tile>;
3500
3558
  }
3501
3559
  /**
3560
+ * @internal
3502
3561
  * A terrain GPU related object
3503
3562
  */
3504
3563
  export type TerrainData = {
@@ -3513,6 +3572,7 @@ export type TerrainData = {
3513
3572
  tile: Tile;
3514
3573
  };
3515
3574
  /**
3575
+ * @internal
3516
3576
  * A terrain mesh object
3517
3577
  */
3518
3578
  export type TerrainMesh = {
@@ -4265,6 +4325,7 @@ export declare class VertexArrayObject {
4265
4325
  destroy(): void;
4266
4326
  }
4267
4327
  /**
4328
+ * @internal
4268
4329
  * A single segment of a vector
4269
4330
  */
4270
4331
  export type Segment = {
@@ -5092,7 +5153,18 @@ export declare class CollisionIndex {
5092
5153
  isInsideGrid(x1: number, y1: number, x2: number, y2: number): boolean;
5093
5154
  getViewportMatrix(): mat4;
5094
5155
  }
5095
- export type TextAnchor = "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
5156
+ declare enum TextAnchorEnum {
5157
+ "center" = 1,
5158
+ "left" = 2,
5159
+ "right" = 3,
5160
+ "top" = 4,
5161
+ "bottom" = 5,
5162
+ "top-left" = 6,
5163
+ "top-right" = 7,
5164
+ "bottom-left" = 8,
5165
+ "bottom-right" = 9
5166
+ }
5167
+ export type TextAnchor = keyof typeof TextAnchorEnum;
5096
5168
  export declare class OpacityState {
5097
5169
  opacity: number;
5098
5170
  placed: boolean;
@@ -5205,7 +5277,7 @@ export declare class Placement {
5205
5277
  };
5206
5278
  constructor(transform: Transform, terrain: Terrain, fadeDuration: number, crossSourceCollisions: boolean, prevPlacement?: Placement);
5207
5279
  getBucketParts(results: Array<BucketPart>, styleLayer: StyleLayer, tile: Tile, sortAcrossTiles: boolean): void;
5208
- attemptAnchorPlacement(anchor: TextAnchor, textBox: SingleCollisionBox, width: number, height: number, textBoxScale: number, rotateWithMap: boolean, pitchWithMap: boolean, textPixelRatio: number, posMatrix: mat4, collisionGroup: CollisionGroup, textOverlapMode: OverlapMode, symbolInstance: SymbolInstance, bucket: SymbolBucket, orientation: number, iconBox?: SingleCollisionBox | null, getElevation?: (x: number, y: number) => number): {
5280
+ attemptAnchorPlacement(textAnchorOffset: TextAnchorOffset, textBox: SingleCollisionBox, width: number, height: number, textBoxScale: number, rotateWithMap: boolean, pitchWithMap: boolean, textPixelRatio: number, posMatrix: mat4, collisionGroup: CollisionGroup, textOverlapMode: OverlapMode, symbolInstance: SymbolInstance, bucket: SymbolBucket, orientation: number, iconBox?: SingleCollisionBox | null, getElevation?: (x: number, y: number) => number): {
5209
5281
  shift: Point;
5210
5282
  placedGlyphBoxes: {
5211
5283
  box: Array<number>;
@@ -5490,6 +5562,7 @@ export declare class Style extends Evented {
5490
5562
  hasTransitions(): boolean;
5491
5563
  _checkLoaded(): void;
5492
5564
  /**
5565
+ * @internal
5493
5566
  * Apply queued style updates in a batch and recalculate zoom-dependent paint properties.
5494
5567
  */
5495
5568
  update(parameters: EvaluationParameters): void;
@@ -5794,9 +5867,7 @@ export declare class DragPanHandler {
5794
5867
  _mousePan: MousePanHandler;
5795
5868
  _touchPan: TouchPanHandler;
5796
5869
  _inertiaOptions: DragPanOptions | boolean;
5797
- /**
5798
- * @hidden
5799
- */
5870
+ /** @internal */
5800
5871
  constructor(el: HTMLElement, mousePan: MousePanHandler, touchPan: TouchPanHandler);
5801
5872
  /**
5802
5873
  * Enables the "drag to pan" interaction.
@@ -6254,30 +6325,30 @@ declare abstract class Camera extends Evented {
6254
6325
  _onEaseEnd: (easeId?: string) => void;
6255
6326
  _easeFrameId: TaskID;
6256
6327
  /**
6257
- * @hidden
6328
+ * @internal
6258
6329
  * holds the geographical coordinate of the target
6259
6330
  */
6260
6331
  _elevationCenter: LngLat;
6261
6332
  /**
6262
- * @hidden
6333
+ * @internal
6263
6334
  * holds the targ altitude value, = center elevation of the target.
6264
6335
  * This value may changes during flight, because new terrain-tiles loads during flight.
6265
6336
  */
6266
6337
  _elevationTarget: number;
6267
6338
  /**
6268
- * @hidden
6339
+ * @internal
6269
6340
  * holds the start altitude value, = center elevation before animation begins
6270
6341
  * this value will recalculated during flight in respect of changing _elevationTarget values,
6271
6342
  * so the linear interpolation between start and target keeps smooth and without jumps.
6272
6343
  */
6273
6344
  _elevationStart: number;
6274
6345
  /**
6275
- * @hidden
6346
+ * @internal
6276
6347
  * Saves the current state of the elevation freeze - this is used during map movement to prevent "rocky" camera movement.
6277
6348
  */
6278
6349
  _elevationFreeze: boolean;
6279
6350
  /**
6280
- * @hidden
6351
+ * @internal
6281
6352
  * Used to track accumulated changes during continuous interaction
6282
6353
  */
6283
6354
  _requestedCameraState?: Transform;
@@ -6549,6 +6620,7 @@ declare abstract class Camera extends Evented {
6549
6620
  */
6550
6621
  cameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CenterZoomBearing;
6551
6622
  /**
6623
+ * @internal
6552
6624
  * Calculate the center of these two points in the viewport and use
6553
6625
  * the highest zoom level up to and including `Map#getMaxZoom()` that fits
6554
6626
  * the points in the viewport at the specified bearing.
@@ -6558,7 +6630,6 @@ declare abstract class Camera extends Evented {
6558
6630
  * @param options - the camera options
6559
6631
  * @returns If map is able to fit to provided bounds, returns `center`, `zoom`, and `bearing`.
6560
6632
  * If map is unable to fit, method will warn and return undefined.
6561
- * @hidden
6562
6633
  * @example
6563
6634
  * ```ts
6564
6635
  * let p0 = [-79, 43];
@@ -6680,17 +6751,17 @@ declare abstract class Camera extends Evented {
6680
6751
  _updateElevation(k: number): void;
6681
6752
  _finalizeElevation(): void;
6682
6753
  /**
6754
+ * @internal
6683
6755
  * Called when the camera is about to be manipulated.
6684
6756
  * If `transformCameraUpdate` is specified, a copy of the current transform is created to track the accumulated changes.
6685
6757
  * This underlying transform represents the "desired state" proposed by input handlers / animations / UI controls.
6686
6758
  * It may differ from the state used for rendering (`this.transform`).
6687
- * @hidden
6688
6759
  * @returns Transform to apply changes to
6689
6760
  */
6690
6761
  _getTransformForUpdate(): Transform;
6691
6762
  /**
6763
+ * @internal
6692
6764
  * Called after the camera is done being manipulated.
6693
- * @hidden
6694
6765
  * @param tr - the requested camera end state
6695
6766
  * Call `transformCameraUpdate` if present, and then apply the "approved" changes.
6696
6767
  */
@@ -7438,9 +7509,7 @@ declare abstract class TwoFingersTouchHandler implements Handler {
7438
7509
  _vector: Point;
7439
7510
  _startVector: Point;
7440
7511
  _aroundCenter: boolean;
7441
- /**
7442
- * @hidden
7443
- */
7512
+ /** @internal */
7444
7513
  constructor();
7445
7514
  reset(): void;
7446
7515
  abstract _start(points: [
@@ -7571,9 +7640,7 @@ export declare class ScrollZoomHandler implements Handler {
7571
7640
  _triggerRenderFrame: () => void;
7572
7641
  _defaultZoomRate: number;
7573
7642
  _wheelZoomRate: number;
7574
- /**
7575
- * @hidden
7576
- */
7643
+ /** @internal */
7577
7644
  constructor(map: Map, triggerRenderFrame: () => void);
7578
7645
  /**
7579
7646
  * Set the zoom rate of a trackpad
@@ -7646,9 +7713,7 @@ export declare class BoxZoomHandler implements Handler {
7646
7713
  _lastPos: Point;
7647
7714
  _box: HTMLElement;
7648
7715
  _clickTolerance: number;
7649
- /**
7650
- * @hidden
7651
- */
7716
+ /** @internal */
7652
7717
  constructor(map: Map, options: {
7653
7718
  clickTolerance: number;
7654
7719
  });
@@ -7702,9 +7767,7 @@ export declare class DragRotateHandler {
7702
7767
  _mouseRotate: MouseRotateHandler;
7703
7768
  _mousePitch: MousePitchHandler;
7704
7769
  _pitchWithRotate: boolean;
7705
- /**
7706
- * @hidden
7707
- */
7770
+ /** @internal */
7708
7771
  constructor(options: DragRotateHandlerOptions, mouseRotate: MouseRotateHandler, mousePitch: MousePitchHandler);
7709
7772
  /**
7710
7773
  * Enables the "drag to rotate" interaction.
@@ -7745,9 +7808,7 @@ export declare class KeyboardHandler implements Handler {
7745
7808
  _bearingStep: number;
7746
7809
  _pitchStep: number;
7747
7810
  _rotationDisabled: boolean;
7748
- /**
7749
- * @hidden
7750
- */
7811
+ /** @internal */
7751
7812
  constructor(map: Map);
7752
7813
  reset(): void;
7753
7814
  keydown(e: KeyboardEvent): {
@@ -7812,9 +7873,7 @@ export declare class ClickZoomHandler implements Handler {
7812
7873
  _tr: TransformProvider;
7813
7874
  _enabled: boolean;
7814
7875
  _active: boolean;
7815
- /**
7816
- * @hidden
7817
- */
7876
+ /** @internal */
7818
7877
  constructor(map: Map);
7819
7878
  reset(): void;
7820
7879
  dblclick(e: MouseEvent, point: Point): {
@@ -7878,9 +7937,7 @@ export declare class TapZoomHandler implements Handler {
7878
7937
  export declare class DoubleClickZoomHandler {
7879
7938
  _clickZoom: ClickZoomHandler;
7880
7939
  _tapZoom: TapZoomHandler;
7881
- /**
7882
- * @hidden
7883
- */
7940
+ /** @internal */
7884
7941
  constructor(clickZoom: ClickZoomHandler, TapZoom: TapZoomHandler);
7885
7942
  /**
7886
7943
  * Enables the "double click to zoom" interaction.
@@ -7941,9 +7998,7 @@ export declare class TwoFingersTouchZoomRotateHandler {
7941
7998
  _tapDragZoom: TapDragZoomHandler;
7942
7999
  _rotationDisabled: boolean;
7943
8000
  _enabled: boolean;
7944
- /**
7945
- * @hidden
7946
- */
8001
+ /** @internal */
7947
8002
  constructor(el: HTMLElement, touchZoom: TwoFingersTouchZoomHandler, touchRotate: TwoFingersTouchRotateHandler, tapDragZoom: TapDragZoomHandler);
7948
8003
  /**
7949
8004
  * Enables the "pinch to rotate and zoom" interaction.
@@ -8420,7 +8475,7 @@ export declare class Map extends Camera {
8420
8475
  ];
8421
8476
  _terrainDataCallback: (e: MapStyleDataEvent | MapSourceDataEvent) => void;
8422
8477
  /**
8423
- * @hidden
8478
+ * @internal
8424
8479
  * image queue throttling handle. To be used later when clean up
8425
8480
  */
8426
8481
  _imageQueueHandle: number;
@@ -8467,9 +8522,9 @@ export declare class Map extends Camera {
8467
8522
  touchPitch: TwoFingersTouchPitchHandler;
8468
8523
  constructor(options: MapOptions);
8469
8524
  /**
8525
+ * @internal
8470
8526
  * Returns a unique number for this map instance which is used for the MapLoadEvent
8471
8527
  * to make sure we only fire one event per instantiated map object.
8472
- * @hidden
8473
8528
  * @returns the uniq map ID
8474
8529
  */
8475
8530
  _getMapId(): number;
@@ -8548,9 +8603,9 @@ export declare class Map extends Camera {
8548
8603
  */
8549
8604
  resize(eventData?: any): Map;
8550
8605
  /**
8606
+ * @internal
8551
8607
  * Return the map's pixel ratio eventually scaled down to respect maxCanvasSize.
8552
8608
  * Internally you should use this and not getPixelRatio().
8553
- * @hidden
8554
8609
  */
8555
8610
  _getClampedPixelRatio(width: number, height: number): number;
8556
8611
  /**
@@ -9958,23 +10013,25 @@ export declare class Map extends Camera {
9958
10013
  */
9959
10014
  loaded(): boolean;
9960
10015
  /**
10016
+ * @internal
9961
10017
  * Update this map's style and sources, and re-render the map.
9962
10018
  *
9963
- * @hidden
9964
10019
  * @param updateStyle - mark the map's style for reprocessing as
9965
10020
  * well as its sources
9966
10021
  * @returns `this`
9967
10022
  */
9968
10023
  _update(updateStyle?: boolean): this;
9969
10024
  /**
10025
+ * @internal
9970
10026
  * Request that the given callback be executed during the next render
9971
10027
  * frame. Schedule a render frame if one is not already scheduled.
9972
- * @hidden
10028
+ *
9973
10029
  * @returns An id that can be used to cancel the callback
9974
10030
  */
9975
10031
  _requestRenderFrame(callback: () => void): TaskID;
9976
10032
  _cancelRenderFrame(id: TaskID): void;
9977
10033
  /**
10034
+ * @internal
9978
10035
  * Call when a (re-)render of the map is required:
9979
10036
  * - The style has changed (`setPaintProperty()`, etc.)
9980
10037
  * - Source data has changed (e.g. tiles have finished loading)
@@ -9982,7 +10039,6 @@ export declare class Map extends Camera {
9982
10039
  * - A transition is in progress
9983
10040
  *
9984
10041
  * @param paintStartTimeStamp - The time when the animation frame began executing.
9985
- * @hidden
9986
10042
  *
9987
10043
  * @returns `this`
9988
10044
  */
@@ -11081,9 +11137,7 @@ export declare class GeoJSONSource extends Evented implements Source {
11081
11137
  _pendingLoads: number;
11082
11138
  _collectResourceTiming: boolean;
11083
11139
  _removed: boolean;
11084
- /**
11085
- * @hidden
11086
- */
11140
+ /** @internal */
11087
11141
  constructor(id: string, options: GeoJSONSourceOptions, dispatcher: Dispatcher, eventedParent: Evented);
11088
11142
  load: () => void;
11089
11143
  onAdd(map: Map): void;