nuxt-mapbox
Version:
Elegant Mapbox GL JS integration with Nuxt
10 lines (9 loc) • 589 B
TypeScript
import { Popup, type PopupOptions } from "mapbox-gl";
import { type Ref } from '#imports';
/**
* Create a new Popup instance for a component. Will be automatically added to map if it is nested in MapboxMap
*
* @param popupHTML Optionally pass a template ref to automatically put html inside popup
* @param mapID Optionally pass the mapID manually. Will be auto injected if component is nested in MapboxMap
*/
export declare function defineMapboxPopup(popupID: string, options: PopupOptions | Ref<PopupOptions>, popupHTML?: Ref<HTMLElement | null>, mapID?: string): Popup | undefined;