UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

25 lines (24 loc) 866 B
/** * Define how we want to build the map * - 'preloaded': the map is already loaded into the window object * - 'flat': Pull in the flat build (useful for development and testing) * - 'prod': Pull in the production build. It has seperate calls for workers */ export type BuildType = 'preloaded' | 'flat' | 'prod'; /** * Preload the map and associated CSS * @param build - the build type * @param version - the version */ export declare function preloadMap(build: BuildType, version?: string): Promise<void>; /** * Preload a script * @param url - the url of the script to load * @returns a promise that resolves when the script is loaded */ export declare function preloadScript(url: string): Promise<void>; /** * Preload a style. Be sure we haven't already loaded it * @param url - the url */ export declare function preloadStyle(url: string): void;