UNPKG

nuxt-mapbox

Version:

Elegant Mapbox GL JS integration with Nuxt

10 lines (9 loc) 443 B
import { Map } from "mapbox-gl"; import { type ComputedRef, type Ref } from "#imports"; export declare function useMapboxRef(mapID: string): Ref<Map | undefined>; export declare function useMapboxInstance(mapID: string): Ref<Map | undefined>; export declare function _useMapboxInstanceWithLoaded(mapID: string): ComputedRef<{ map: Map; loaded: boolean; } | undefined>; export declare function cleanMapboxInstance(mapID: string): void;