kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
22 lines (21 loc) • 895 B
TypeScript
import { PMTilesMetadata } from '@loaders.gl/pmtiles';
import { VectorTileMetadata } from '@kepler.gl/table';
import { JsonObjectOrArray, StacTypes } from '@kepler.gl/types';
import { RasterTileType } from '@kepler.gl/constants';
declare type RasterMetadataResponse = VectorTileMetadata | StacTypes.CompleteSTACObject | null;
export declare type FetchJsonProps = {
url: string | null;
rasterTileType: RasterTileType;
options?: JsonObjectOrArray;
process: (json: PMTilesMetadata | JsonObjectOrArray, options: {
metadataUrl: string;
rasterTileType: RasterTileType;
}) => RasterMetadataResponse | Error;
};
export declare type UseFetchJsonReturn = {
data: RasterMetadataResponse;
loading: boolean;
error: Error | null;
};
export default function useFetchJson({ url, rasterTileType, options, process }: FetchJsonProps): UseFetchJsonReturn;
export {};