@openglobus/og 0.26.0 → 0.26.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.
- package/lib/layer/XYZ.d.ts +3 -2
- package/lib/og.es.js +1 -1
- package/lib/og.es.js.map +1 -1
- package/lib/terrain/GlobusTerrain.d.ts +3 -2
- package/lib/utils/Loader.d.ts +1 -0
- package/package.json +1 -1
package/lib/layer/XYZ.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Segment } from "../segment/Segment";
|
|
|
4
4
|
import type { EventsHandler } from "../Events";
|
|
5
5
|
import { Material } from "./Material";
|
|
6
6
|
import type { NumberArray4 } from "../math/Vec4";
|
|
7
|
+
import type { FetchCache } from "../utils/Loader";
|
|
7
8
|
export interface IXYZParams extends ILayerParams {
|
|
8
9
|
url?: string;
|
|
9
10
|
subdomains?: string[];
|
|
@@ -15,7 +16,7 @@ export interface IXYZParams extends ILayerParams {
|
|
|
15
16
|
* https://developer.mozilla.org/en-US/docs/Web/API/Request/cache
|
|
16
17
|
* @default "default"
|
|
17
18
|
*/
|
|
18
|
-
cache?:
|
|
19
|
+
cache?: FetchCache;
|
|
19
20
|
}
|
|
20
21
|
type XYZEventsList = [
|
|
21
22
|
"load",
|
|
@@ -87,7 +88,7 @@ export declare class XYZ extends Layer {
|
|
|
87
88
|
protected _urlRewriteCallback: Function | null;
|
|
88
89
|
protected _requestsPeerSubdomains: number;
|
|
89
90
|
protected _requestCount: number;
|
|
90
|
-
protected _cache:
|
|
91
|
+
protected _cache: FetchCache;
|
|
91
92
|
constructor(name: string | null, options?: IXYZParams);
|
|
92
93
|
/**
|
|
93
94
|
* @warning Use XYZ.isIdle in requestAnimationFrame(after setVisibility)
|