@opengeoweb/webmap 9.16.0 → 9.17.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/index.esm.js +2408 -2342
- package/package.json +1 -1
- package/src/lib/components/WMImage.d.ts +4 -1
- package/src/lib/utils/fakeMaxAgeResponses.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface WMImageOptions {
|
|
2
2
|
randomizer?: boolean;
|
|
3
3
|
headers: Headers[];
|
|
4
|
+
fakeMaxAge?: number;
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* Returns the current time in ms
|
|
@@ -25,6 +26,7 @@ export default class WMImage {
|
|
|
25
26
|
_numFailedAttempts: number;
|
|
26
27
|
_loadStartTime: number;
|
|
27
28
|
_loadDuration?: number;
|
|
29
|
+
_fakeMaxAge?: number | null;
|
|
28
30
|
/**
|
|
29
31
|
*
|
|
30
32
|
* @param src Optionally set the source URL to load
|
|
@@ -39,6 +41,7 @@ export default class WMImage {
|
|
|
39
41
|
isLoaded(): boolean;
|
|
40
42
|
isLoadedWithoutErrors(): boolean;
|
|
41
43
|
hasNotStartedLoading(): boolean;
|
|
44
|
+
isStale(): boolean;
|
|
42
45
|
/**
|
|
43
46
|
* Returns true if the image is still loading
|
|
44
47
|
*/
|
|
@@ -74,7 +77,7 @@ export default class WMImage {
|
|
|
74
77
|
* Start loading the image
|
|
75
78
|
*/
|
|
76
79
|
load(): void;
|
|
77
|
-
forceReload(): void;
|
|
80
|
+
forceReload(randomize?: boolean): void;
|
|
78
81
|
private _getImageWithHeaders;
|
|
79
82
|
private _load;
|
|
80
83
|
private _loadEvent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fakeMaxAgeResponsesByLayer: Record<string, number>;
|