react-map-gl
Version:
React components for MapLibre GL JS and Mapbox GL JS
30 lines • 1.16 kB
TypeScript
import * as React from 'react';
import type { PopupInstance as _PopupInstance, PopupOptions } from "../types/lib.js";
import type { PopupEvent } from "../types/events.js";
export type PopupProps = PopupOptions & {
/** Longitude of the anchor location */
longitude: number;
/** Latitude of the anchor location */
latitude: number;
/** CSS style override, applied to the control's container */
style?: React.CSSProperties;
onOpen?: (e: PopupEvent) => void;
onClose?: (e: PopupEvent) => void;
children?: React.ReactNode;
};
type PopupInstance = _PopupInstance & {
options: PopupOptions;
};
export declare const Popup: React.MemoExoticComponent<React.ForwardRefExoticComponent<PopupOptions & {
/** Longitude of the anchor location */
longitude: number;
/** Latitude of the anchor location */
latitude: number;
/** CSS style override, applied to the control's container */
style?: React.CSSProperties;
onOpen?: (e: PopupEvent) => void;
onClose?: (e: PopupEvent) => void;
children?: React.ReactNode;
} & React.RefAttributes<PopupInstance>>>;
export {};
//# sourceMappingURL=popup.d.ts.map