UNPKG

svelte-maplibre-gl

Version:

Build interactive web maps effortlessly with MapLibre GL JS and Svelte

19 lines (18 loc) 933 B
import maplibregl from 'maplibre-gl'; import type { Listener, Event } from '../types.js'; type GeolocateEvent = Event<maplibregl.GeolocateControl> & object; interface Props extends maplibregl.GeolocateControlOptions { position?: maplibregl.ControlPosition; autoTrigger?: boolean; control?: maplibregl.GeolocateControl; ontrackuserlocationend?: Listener<GeolocateEvent>; ontrackuserlocationstart?: Listener<GeolocateEvent>; onuserlocationlostfocus?: Listener<GeolocateEvent>; onuserlocationfocus?: Listener<GeolocateEvent>; ongeolocate?: Listener<GeolocateEvent & GeolocationPosition>; onerror?: Listener<GeolocateEvent & GeolocationPositionError>; onoutofmaxbounds?: Listener<GeolocateEvent & GeolocationPosition>; } declare const GeolocateControl: import("svelte").Component<Props, {}, "control">; type GeolocateControl = ReturnType<typeof GeolocateControl>; export default GeolocateControl;