Interface HasPopup

Components that implement this interface can display a popup on the map.

interface HasPopup {
    popup?: ((popupGL) => ReactNode);
    popupOptions?: PopupOptions;
}

Properties

popup?: ((popupGL) => ReactNode)

Render function that returns a React component to be displayed as the content of a custom popup.

Type declaration

    • (popupGL): ReactNode
    • Parameters

      • popupGL: Popup

        The Mapbox Popup control associated with an owning Mapbox control.

      Returns ReactNode

popupOptions?: PopupOptions

Options that are passed to the constructor of the Mapbox Popup control.