import { EventsKey } from '../events'; import BaseEvent from '../events/Event'; import { Extent } from '../extent'; import ImageWrapper, { LoadFunction } from '../Image'; import { ObjectEvent } from '../Object'; import { ProjectionLike } from '../proj'; import Projection from '../proj/Projection'; import { Size } from '../size'; import ImageSource, { ImageSourceEvent } from './Image'; export interface Options { url?: string | undefined; crossOrigin?: null | string | undefined; displayDpi?: number | undefined; metersPerUnit?: number | undefined; hidpi?: boolean | undefined; useOverlay?: boolean | undefined; projection?: ProjectionLike | undefined; ratio?: number | undefined; resolutions?: number[] | undefined; imageLoadFunction?: LoadFunction | undefined; imageSmoothing?: boolean | undefined; params?: any; } export default class ImageMapGuide extends ImageSource { constructor(options: Options); getImageInternal(extent: Extent, resolution: number, pixelRatio: number, projection: Projection): ImageWrapper; /** * Return the image load function of the source. */ getImageLoadFunction(): LoadFunction; /** * Get the user-provided params, i.e. those passed to the constructor through * the "params" option, and possibly updated using the updateParams method. */ getParams(): any; getUrl( baseUrl: string, params: { [key: string]: string | number }, extent: Extent, size: Size, projection: Projection, ): string; /** * Set the image load function of the MapGuide source. */ setImageLoadFunction(imageLoadFunction: LoadFunction): void; /** * Update the user-provided params. */ updateParams(params: any): void; on(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[]; once(type: string | string[], listener: (p0: any) => any): EventsKey | EventsKey[]; un(type: string | string[], listener: (p0: any) => any): void; on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey; once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey; un(type: 'change', listener: (evt: BaseEvent) => void): void; on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey; once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey; un(type: 'error', listener: (evt: BaseEvent) => void): void; on(type: 'imageloadend', listener: (evt: ImageSourceEvent) => void): EventsKey; once(type: 'imageloadend', listener: (evt: ImageSourceEvent) => void): EventsKey; un(type: 'imageloadend', listener: (evt: ImageSourceEvent) => void): void; on(type: 'imageloaderror', listener: (evt: ImageSourceEvent) => void): EventsKey; once(type: 'imageloaderror', listener: (evt: ImageSourceEvent) => void): EventsKey; un(type: 'imageloaderror', listener: (evt: ImageSourceEvent) => void): void; on(type: 'imageloadstart', listener: (evt: ImageSourceEvent) => void): EventsKey; once(type: 'imageloadstart', listener: (evt: ImageSourceEvent) => void): EventsKey; un(type: 'imageloadstart', listener: (evt: ImageSourceEvent) => void): void; on(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey; once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey; un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void; }