UNPKG

vue3-maplibre-gl

Version:

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

80 lines (79 loc) 3.02 kB
import { Anchor } from '../types'; import { LngLatLike, Alignment, PointLike, MarkerOptions, Popup } from 'maplibre-gl'; /** * Props interface for Marker component * Defines all configurable properties for a MapLibre GL Marker */ interface MarkerProps { /** Geographic coordinates for the marker */ lnglat: LngLatLike; /** Popup to associate with the marker */ popup: Popup; /** Marker configuration options */ options: MarkerOptions; /** Whether the marker is draggable */ draggable: boolean; /** Custom HTML element for the marker */ element: HTMLElement | undefined; /** Offset from the marker's position */ offset: PointLike | undefined; /** Anchor point for the marker */ anchor: Anchor | undefined; /** Color of the default marker */ color: string | undefined; /** Tolerance for click events */ clickTolerance: number | undefined; /** Rotation angle in degrees */ rotation: number | undefined; /** Rotation alignment relative to the map */ rotationAlignment: Alignment | undefined; /** Pitch alignment relative to the map */ pitchAlignment: Alignment | undefined; /** Scale factor for the marker */ scale: number | undefined; /** Opacity when marker is occluded */ occludedOpacity: number | undefined; } declare function __VLS_template(): { default?(_: {}): any; }; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<MarkerProps>>, { options: () => {}; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { dragstart: (ev: Event) => void; drag: (ev: Event) => void; dragend: (ev: Event) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<MarkerProps>>, { options: () => {}; }>>> & Readonly<{ onDragstart?: ((ev: Event) => any) | undefined; onDrag?: ((ev: Event) => any) | undefined; onDragend?: ((ev: Event) => any) | undefined; }>, { options: MarkerOptions; }, {}, {}, {}, 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=Marker.vue.d.ts.map