Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarfonts committed Jul 8, 2024
1 parent 3e256c8 commit d3ee77b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cogProtocol.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { RequestParameters } from 'maplibre-gl';
export interface FetchResponse {
data: ImageBitmap;
expires?: string;
cacheControl?: string;
}
declare const cogProtocol: (params: RequestParameters, abortController: AbortController) => Promise<FetchResponse | {
data: {
tilejson: string;
attribution: any;
tiles: string[];
maxzoom: number | undefined;
bounds: [number, number, number, number];
vector_layers: {
id: string;
}[];
};
}>;
export default cogProtocol;
5 changes: 5 additions & 0 deletions cogProtocol.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cogProtocol.js.map

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions readRGB.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ReadRasterResult } from 'geotiff';
type FileDirectory = {
PhotometricInterpretation: number;
ColorMap: Array<number>;
ExtraSamples: number;
BitsPerSample: Array<number>;
};
export declare const computeSamples: (fileDirectory: FileDirectory, enableAlpha?: boolean) => number[];
export declare const toRGB: (raster: ReadRasterResult, fileDirectory: FileDirectory) => Uint8Array | Uint8ClampedArray;
export {};

0 comments on commit d3ee77b

Please sign in to comment.