vue-maplibre-gl
Version:
Vue 3 plugin for maplibre-gl
12 lines (11 loc) • 552 B
TypeScript
import { MglMap } from '../components';
import { Map, MapOptions, MarkerOptions } from 'maplibre-gl';
export type MapEventHandler = (e: any) => void;
export declare class MapLib {
static readonly MAP_OPTION_KEYS: Array<keyof MapOptions | 'mapStyle'>;
static readonly MARKER_OPTION_KEYS: Array<keyof MarkerOptions>;
static readonly MAP_EVENT_TYPES: string[];
static createEventHandler(component: InstanceType<typeof MglMap>, map: Map, ctx: {
emit: (t: string, payload: any) => void;
}, eventName: string): MapEventHandler;
}