nuxt-mapbox
Version:
Elegant Mapbox GL JS integration with Nuxt
13 lines (12 loc) • 540 B
TypeScript
import { Map } from "mapbox-gl";
type MapboxCallback = (map: Map) => void;
/**
* Executes a callback function when the Mapbox instance with the specified map ID is available & loaded.
*
* if you need access to the map before load be sure to use `useMapboxBeforeLoad` instead
*
* @param {string} mapID - The ID of the Mapbox map.
* @param {MapboxCallback} callback - The callback function to be executed when the Mapbox map is available.
*/
export declare function useMapbox(mapID: string, callback: MapboxCallback): void;
export {};