@carto/airship-bridge
Version:
Airship bridge to other libs (CARTO VL, CARTO.js)
10 lines (9 loc) • 353 B
TypeScript
/**
* Waits until CARTO VL layer has loaded and calls `cb`. If it's already loaded
* it will immediately call `cb`.
*
* @param layer CARTO VL layer to wait for
* @param cb callback to run
* @param dynamic if true, cb will also be bound to `updated` event.
*/
export declare function waitUntilLoaded(layer: any, cb: any, dynamic?: boolean): void;