UNPKG

svelte-maplibre-gl

Version:

Build interactive web maps effortlessly with MapLibre GL JS and Svelte

15 lines (14 loc) 483 B
import { type Snippet } from 'svelte'; import maplibregl from 'maplibre-gl'; interface Props extends Omit<maplibregl.PopupOptions, 'className'> { lnglat?: maplibregl.LngLatLike; class?: string; open?: boolean; /** HTML content of the popup */ children?: Snippet; onopen?: maplibregl.Listener; onclose?: maplibregl.Listener; } declare const Popup: import("svelte").Component<Props, {}, "open">; type Popup = ReturnType<typeof Popup>; export default Popup;