svelte-maplibre-gl
Version:
Build interactive web maps effortlessly with MapLibre GL JS and Svelte
16 lines (15 loc) • 534 B
TypeScript
import { type Snippet } from 'svelte';
import maplibregl from 'maplibre-gl';
interface Props extends Omit<maplibregl.MarkerOptions, 'className'> {
lnglat: maplibregl.LngLatLike;
class?: string;
/** HTML content of the marker */
content?: Snippet;
children?: Snippet;
ondrag?: maplibregl.Listener;
ondragstart?: maplibregl.Listener;
ondragend?: maplibregl.Listener;
}
declare const Marker: import("svelte").Component<Props, {}, "lnglat">;
type Marker = ReturnType<typeof Marker>;
export default Marker;