UNPKG

svelte-maplibre-gl

Version:

Build interactive web maps effortlessly with MapLibre GL JS and Svelte

13 lines (12 loc) 466 B
import { type Snippet } from 'svelte'; import maplibregl from 'maplibre-gl'; import type { MapLayerEventProps } from './common.js'; interface Props extends MapLayerEventProps { id?: string; beforeId?: string; implementation: Omit<maplibregl.CustomLayerInterface, 'id' | 'type'>; children?: Snippet; } declare const CustomLayer: import("svelte").Component<Props, {}, "">; type CustomLayer = ReturnType<typeof CustomLayer>; export default CustomLayer;