@uiw/react-amap-info-window
Version:
用于在地图上弹出一个详细信息展示窗体,地图上只允许同时展示 `1` 个信息窗体。
11 lines (10 loc) • 553 B
TypeScript
import { InfoWindowProps } from '.';
export interface UseInfoWindow extends InfoWindowProps {
}
export declare const useInfoWindow: (props?: UseInfoWindow) => {
isOpen: boolean | undefined;
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
infoWindow: AMap.InfoWindow | undefined;
setInfoWindow: import("react").Dispatch<import("react").SetStateAction<AMap.InfoWindow | undefined>>;
InfoWindowPortal: ({ children }: import("react").PropsWithChildren) => import("react").ReactPortal | null;
};