UNPKG

vue3-maplibre-gl

Version:

Vue 3 components and composables for MapLibre GL JS - Build interactive maps with ease

83 lines (82 loc) 2.8 kB
import { LngLatLike, PopupOptions } from 'maplibre-gl'; /** * Props interface for Popup component * Defines all configurable properties for a MapLibre GL Popup */ interface PopupProps { /** CSS class name for the popup */ className: string; /** Geographic coordinates for the popup */ lnglat: LngLatLike; /** Whether the popup is visible */ show: boolean; /** Whether to attach popup to the map */ withMap: boolean; /** Popup configuration options */ options: PopupOptions; /** HTML content for the popup */ html: string; /** Maximum width of the popup */ maxWidth?: string; /** Whether to show close button */ closeButton?: boolean; /** Whether to close on map click */ closeOnClick?: boolean; /** Whether to close on escape key */ closeOnEscape?: boolean; } declare function __VLS_template(): { default?(_: {}): any; }; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<PopupProps>>, { show: boolean; withMap: boolean; closeButton: boolean; closeOnClick: boolean; closeOnEscape: boolean; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { close: () => void; open: () => void; "update:show": (show: boolean) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<PopupProps>>, { show: boolean; withMap: boolean; closeButton: boolean; closeOnClick: boolean; closeOnEscape: boolean; }>>> & Readonly<{ onOpen?: (() => any) | undefined; onClose?: (() => any) | undefined; "onUpdate:show"?: ((show: boolean) => any) | undefined; }>, { show: boolean; withMap: boolean; closeOnClick: boolean; closeButton: boolean; closeOnEscape: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; }; //# sourceMappingURL=PopUp.vue.d.ts.map