@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
11 lines (10 loc) • 492 B
TypeScript
export declare const MAPBOX_TOKEN_MISSING_ERROR_MESSAGE = "Set your mapbox token with \"poly.thirdParty.mapbox().setToken('<YOUR TOKEN>')\" in the PolyConfig.ts file, then reload the page";
type GetTokenFunc = () => Promise<string | undefined>;
export declare class PolyThirdPartyMapboxController {
private _token;
private _getTokenFunc;
setToken(token: string): void;
setGetTokenFunction(tokenFunc: GetTokenFunc): void;
token(): Promise<string | undefined>;
}
export {};