svelte-maplibre-gl
Version:
Build interactive web maps effortlessly with MapLibre GL JS and Svelte
17 lines (16 loc) • 574 B
TypeScript
import { type Snippet } from 'svelte';
import * as 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;
onclick?: maplibregl.Listener;
}
declare const Marker: import("svelte").Component<Props, {}, "lnglat">;
type Marker = ReturnType<typeof Marker>;
export default Marker;