Interface MountSourcePopupOptionsExperimental

Click-popup configuration.

interface MountSourcePopupOptions {
    factory: PopupFactory;
    fields?: readonly string[];
    render?: ((context: MountSourcePopupContext) => undefined | string | Node);
    title?: string;
}

Properties

factory: PopupFactory

Creates one popup handle per click — usually () => new maplibregl.Popup().

fields?: readonly string[]

Restrict the default renderer to these properties, in order.

render?: ((context: MountSourcePopupContext) => undefined | string | Node)

Custom formatter; return undefined to suppress the popup for a click.

title?: string

Title rendered by the default formatter.