import Coordinate from '../geo/Coordinate'; import Point from '../geo/Point'; import { Geometry } from '../geometry'; import type { Map } from '../map'; import UIComponent, { UIComponentAlignOptionsType, UIComponentOptionsType } from './UIComponent'; /** * @classdesc * Class for info window, a popup on the map to display any useful infomation you wanted. * @category ui * @extends ui.UIComponent * @param {Object} options - options defined in [InfoWindow]{@link InfoWindow#options} * @memberOf ui */ declare class InfoWindow extends UIComponent { options: InfoWindowOptionsType; /** * Adds the UI Component to a geometry or a map * @param {Geometry|Map} owner - geometry or map to addto. * @returns {UIComponent} this * @fires UIComponent#add */ addTo(owner: Geometry | Map): this; /** * Set the content of the infowindow. * @param {String|HTMLElement} content - content of the infowindow. * return {InfoWindow} this * @fires InfoWindow#contentchange */ setContent(content: string | HTMLElement): this; /** * Get content of the infowindow. * @return {String|HTMLElement} - content of the infowindow */ getContent(): string | HTMLElement; /** * Set the title of the infowindow. * @param {String|HTMLElement} title - title of the infowindow. * return {InfoWindow} this * @fires InfoWindow#titlechange */ setTitle(title: string): this; /** * Get title of the infowindow. * @return {String|HTMLElement} - content of the infowindow */ getTitle(): string; buildOn(): HTMLElement; /** * Gets InfoWindow's transform origin for animation transform * @protected * @return {Point} transform origin */ getTransformOrigin(): string; getOffset(): Point; show(coordinate: Coordinate): this; getEvents(): {}; getOwnerEvents(): {}; onRemove(): void; onDomRemove(): void; } export default InfoWindow; export type InfoWindowOptionsType = { containerClass?: string; autoPan?: boolean; autoCloseOn?: string; autoOpenOn?: string; width?: string; minHeight?: number; custom?: boolean; title?: string; content?: string | HTMLElement; enableTemplate?: boolean; } & UIComponentOptionsType & UIComponentAlignOptionsType; //# sourceMappingURL=InfoWindow.d.ts.map