kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
34 lines (33 loc) • 1.3 kB
TypeScript
import { MapLib, MapRef } from 'react-map-gl';
import type { BaseMapLibraryType } from '@kepler.gl/constants';
export declare type MapLibInstance = MapLib<any>;
export declare type GetMapRef = ReturnType<MapRef['getMap']>;
export declare type BaseMapLibraryConfig = {
getMapLib: () => Promise<MapLibInstance>;
mapLibAttributionCssClass: string;
mapLibCssClass: string;
mapLibName: string;
mapLibUrl: string;
};
/**
* A mechanism to override default Kepler values/settings so that we
* without having to make application-specific changes to the kepler repo.
*/
export declare type KeplerApplicationConfig = {
/** Default name of export HTML file, can be overridden by user */
defaultHtmlName?: string;
defaultImageName?: string;
defaultJsonName?: string;
defaultDataName?: string;
defaultExportJsonSettings?: {
hasData?: boolean;
};
baseMapLibraryConfig?: Record<BaseMapLibraryType, BaseMapLibraryConfig>;
plugins?: any[];
table?: any;
useArrowProgressiveLoading?: boolean;
showReleaseBanner?: boolean;
useOnFilteredItemsChange?: boolean;
};
export declare const getApplicationConfig: () => Required<KeplerApplicationConfig>;
export declare function initApplicationConfig(appConfig?: KeplerApplicationConfig): void;