mirage2d 1.2.54 → 1.2.55
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.
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
createLoadFunction(): (tile: ImageTile, src: string) => void;
|
|
8
|
+
private enqueueLoad;
|
|
9
|
+
private processQueue;
|
|
10
|
+
private executeLoad;
|
|
11
|
+
private handleTimeout;
|
|
12
|
+
}
|
|
@@ -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
|
|
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
|
}
|