UNPKG

svelte-maplibre-gl

Version:

Build interactive web maps effortlessly with MapLibre GL JS and Svelte

13 lines (12 loc) 631 B
import { type Snippet } from 'svelte'; import maplibregl from 'maplibre-gl'; type Source = maplibregl.GeoJSONSource | maplibregl.CanvasSource | maplibregl.VectorTileSource | maplibregl.RasterTileSource | maplibregl.RasterDEMTileSource | maplibregl.CanvasSource | maplibregl.ImageSource | maplibregl.VideoSource; type Specs = maplibregl.SourceSpecification | maplibregl.CanvasSourceSpecification; type Props = { id?: string; source?: Source; children?: Snippet; } & Specs; declare const RawSource: import("svelte").Component<Props, {}, "source">; type RawSource = ReturnType<typeof RawSource>; export default RawSource;