UNPKG

svelte-maplibre-gl

Version:

Build interactive web maps effortlessly with MapLibre GL JS and Svelte

22 lines (21 loc) 791 B
import { type Snippet } from 'svelte'; import * as maplibregl from 'maplibre-gl'; interface Props extends Omit<maplibregl.PopupOptions, 'className'> { lnglat?: maplibregl.LngLatLike; /** * If `true`, the popup follows the cursor position instead of being anchored to `lnglat`. * Hidden on touchscreens. Replaces the `lnglat` behavior while enabled. * * https://maplibre.org/maplibre-gl-js/docs/API/classes/Popup/#trackpointer */ trackPointer?: boolean; 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;