@tuoyuan/map-adapter-lib
Version:
地图适配器库
26 lines (25 loc) • 647 B
TypeScript
export type InfoWindowPlacement = 'top' | 'bottom' | 'left' | 'right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
/** 信息窗口配置 */
export interface IInfoWindowOptions {
/** 页面url */
url?: string;
/** html片段 */
html?: string;
/** 窗口尺寸 */
size: {
width: number;
height: number;
};
/** 显示关闭按钮 */
showClose?: boolean;
/** 方位 */
placement?: InfoWindowPlacement;
}
/**
* 打开信息窗口
*/
export type OpenInfoWindow = (options: IInfoWindowOptions) => void;
/**
* 关闭信息窗口
*/
export type CloseInfoWindow = () => void;