kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
21 lines (20 loc) • 754 B
TypeScript
import { BaseMapLibraryType } from '@kepler.gl/constants';
/**
* Determines whether a Map Style is using Mapbox Tiles
* @param {any} mapStyle the mapStyle to check
* @returns true if the style is using Mapbox tiles
*/
export declare function isStyleUsingMapboxTiles(mapStyle: any): boolean;
export declare function isStyleUsingOpenStreetMapTiles(mapStyle: any): boolean;
/**
* Transform mapbox protocol so can be used with maplibre
* @param mapboxKey mapbox api key
* @returns transformed url
*/
export declare const transformRequest: (_mapboxKey: string) => (url: string, resourceType: string) => {
url: string;
};
export declare const getBaseMapLibrary: (baseMapStyle?: {
url?: string | null;
style?: any;
}) => BaseMapLibraryType;