@gisatcz/deckgl-geolib 2.4.0-dev.5 → 2.4.1-dev.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.
@@ -12,6 +12,8 @@ declare class CogTiles {
12
12
  bounds: [number, number, number, number];
13
13
  geo: GeoImage;
14
14
  options: GeoImageOptions;
15
+ private imageCache;
16
+ private initializePromise?;
15
17
  constructor(options: GeoImageOptions);
16
18
  initializeCog(url: string): Promise<void>;
17
19
  getZoomRange(): number[];
@@ -7,6 +7,13 @@ export type ClampToTerrainOptions = {
7
7
  };
8
8
  export type GeoImageOptions = {
9
9
  type: 'image' | 'terrain';
10
+ /**
11
+ * Block size in bytes for the internal HTTP range-request cache (BlockedSource).
12
+ * Increasing this reduces the number of HTTP requests at the cost of fetching more data per request.
13
+ * Set to 0 to disable block caching entirely (not recommended for most COG servers).
14
+ * Defaults to 65536 (64 KB) — the geotiff.js BlockedSource default.
15
+ */
16
+ blockSize?: number;
10
17
  format?: 'uint8' | 'uint16' | 'uint32' | 'int8' | 'int16' | 'int32' | 'float32' | 'float64';
11
18
  /** 1-based index of the channel to visualize (e.g. 1 for the first channel). */
12
19
  useChannel?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisatcz/deckgl-geolib",
3
- "version": "2.4.0-dev.5",
3
+ "version": "2.4.1-dev.1",
4
4
  "description": "Deck.gl extension for rendering Cloud-Optimized GeoTIFF (COG) data",
5
5
  "keywords": [
6
6
  "deck.gl",