import { Coordinate } from '../coordinate'; import { EventsKey } from '../events'; import BaseEvent from '../events/Event'; import ImageTile from '../ImageTile'; import { ObjectEvent } from '../Object'; import { ProjectionLike } from '../proj'; import { LoadFunction } from '../Tile'; import TileGrid from '../tilegrid/TileGrid'; import { AttributionLike } from './Source'; import { TileSourceEvent } from './Tile'; import TileImage from './TileImage'; import WMSServerType from './WMSServerType'; export interface Options { attributions?: AttributionLike | undefined; cacheSize?: number | undefined; crossOrigin?: null | string | undefined; imageSmoothing?: boolean | undefined; params: { [key: string]: any }; gutter?: number | undefined; hidpi?: boolean | undefined; projection?: ProjectionLike | undefined; reprojectionErrorThreshold?: number | undefined; tileClass?: typeof ImageTile | undefined; tileGrid?: TileGrid | undefined; serverType?: WMSServerType | string | undefined; tileLoadFunction?: LoadFunction | undefined; url?: string | undefined; urls?: string[] | undefined; wrapX?: boolean | undefined; transition?: number | undefined; } export default class TileWMS extends TileImage { constructor(opt_options?: Options); /** * Return the GetFeatureInfo URL for the passed coordinate, resolution, and * projection. Return undefined if the GetFeatureInfo URL cannot be * constructed. */ getFeatureInfoUrl( coordinate: Coordinate, resolution: number, projection: ProjectionLike, params: any, ): string | undefined; getGutter(): number; /** * Return the GetLegendGraphic URL, optionally optimized for the passed * resolution and possibly including any passed specific parameters. Returns * undefined if the GetLegendGraphic URL cannot be constructed. */ getLegendUrl(resolution?: number, params?: any): string | undefined; /** * 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; /** * Get the tile pixel ratio for this source. */ getTilePixelRatio(pixelRatio: number): number; /** * 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: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey; once(type: 'propertychange', listener: (evt: ObjectEvent) => void): EventsKey; un(type: 'propertychange', listener: (evt: ObjectEvent) => void): void; on(type: 'tileloadend', listener: (evt: TileSourceEvent) => void): EventsKey; once(type: 'tileloadend', listener: (evt: TileSourceEvent) => void): EventsKey; un(type: 'tileloadend', listener: (evt: TileSourceEvent) => void): void; on(type: 'tileloaderror', listener: (evt: TileSourceEvent) => void): EventsKey; once(type: 'tileloaderror', listener: (evt: TileSourceEvent) => void): EventsKey; un(type: 'tileloaderror', listener: (evt: TileSourceEvent) => void): void; on(type: 'tileloadstart', listener: (evt: TileSourceEvent) => void): EventsKey; once(type: 'tileloadstart', listener: (evt: TileSourceEvent) => void): EventsKey; un(type: 'tileloadstart', listener: (evt: TileSourceEvent) => void): void; }