Interface PopupHandle

Minimal subset of maplibre-gl.Popup needed to open a popup at click coordinates. Any object implementing these methods works.

interface PopupHandle {
    addTo(map: unknown): this;
    remove(): void;
    setDOMContent(node: Node): this;
    setHTML(html: string): this;
    setLngLat(coord: [number, number]): this;
}

Methods