mirage2d 1.2.54 → 1.2.56

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.
@@ -8,5 +8,10 @@
8
8
  import { baseGraphicLayer } from "../../base/baseGraphicLayer";
9
9
  import { IGraphicLayerOption } from "../../base/baseOptionType";
10
10
  export declare class GraphicImageLayer extends baseGraphicLayer {
11
+ private defaultFillStyle;
11
12
  constructor(layerid: string, options?: IGraphicLayerOption);
13
+ private validateOptions;
14
+ private initializeDefaultStyle;
15
+ private initializeLayer;
16
+ private setupEventHandlers;
12
17
  }
@@ -0,0 +1,15 @@
1
+ import ImageTile from "ol/ImageTile";
2
+ export declare class TileLoadManager {
3
+ private readonly TIMEOUT;
4
+ private readonly MAX_CONCURRENT;
5
+ private currentLoads;
6
+ private loadQueue;
7
+ private destroyed;
8
+ private readonly MAX_QUEUE_LENGTH;
9
+ createLoadFunction(): (tile: ImageTile, src: string) => void;
10
+ private enqueueLoad;
11
+ private processQueue;
12
+ private executeLoad;
13
+ private handleTimeout;
14
+ destroy(): void;
15
+ }
@@ -22,11 +22,28 @@ import { ITileLayerOption } from "src/base/baseOptionType";
22
22
  */
23
23
  export declare class TileXyzLayer extends baseTileLayer {
24
24
  projection: Projection | string;
25
+ private loadingCount;
26
+ private totalTilesLoaded;
27
+ private isHandlingEvents;
28
+ private TIMEOUT_MS;
29
+ private tileLoadManager;
25
30
  /**
26
31
  * TileXyzLayer
27
32
  * @param {string} [layerid='TileXyzLayer'] 默认图层id
28
33
  * @param {ITileLayerOption} [Options] Options 配置项
29
34
  */
30
35
  constructor(layerid: string, Options: ITileLayerOption);
31
- private setGCJ02;
36
+ private initializeProjection;
37
+ private initializeSource;
38
+ private createCorrectSkipTileLoadFunction;
39
+ private initializeLayer;
40
+ private setupEventHandlers;
41
+ private handleTileLoadStart;
42
+ private handleTileLoadEnd;
43
+ /**
44
+ * 所有瓦片加载完成后的处理
45
+ */
46
+ private handleAllTilesLoaded;
47
+ private handleTileLoadError;
48
+ private setupGCJ02Projection;
32
49
  }