import WfsFilter from '../../tools/wfs/wfsfilter.js'; import { GMFTreeItem } from '../gmf.js'; import ServerOgc from '../serverogc.js'; import ILayerWithFilter from './ilayerwithfilter.js'; import ILayerWithLegend from './ilayerwithlegend.js'; import ILayerWithTime from './ilayerwithtime.js'; import ITimeOptions from '../../tools/time/itimeoptions.js'; import ISnappingConfig from '../../tools/snap/isnapconfig.js'; import Layer from './layer.js'; export type LayerWmsOptions = { isDefaultChecked?: boolean; disclaimer?: string; metadataUrl?: string; opacity?: number; restricted?: boolean; minResolution?: number; maxResolution?: number; layers?: string; style?: string; legend?: boolean; iconUrl?: string; legendRule?: string; legendImage?: string; isLegendExpanded?: boolean; wasLegendExpanded?: boolean; hiDPILegendImages?: Record; printNativeAngle?: boolean; queryable?: boolean; queryLayers?: string; queryLayersRanges?: { [name: string]: { minResolution?: number; maxResolution?: number; }; }; time?: ITimeOptions; snappingConfig?: ISnappingConfig; timeAttribute?: string; editable?: string; }; declare class LayerWms extends Layer implements ILayerWithLegend, ILayerWithFilter, ILayerWithTime { /** * This class is a used in the state of the application, which will be accessed behind a javascript proxy. * This means that each modification made to its properties must come from outside, * because they have to be made through the proxy, so that the modification can be listen. * Therefore, this class must not contain any method which is updating a value directly * For example, any method doing is forbidden here, because the modification be known from the proxy */ ogcServer: ServerOgc; minResolution?: number; maxResolution?: number; layers?: string; style?: string; legend: boolean; iconUrl?: string; legendRule?: string; legendImage?: string; wasLegendExpanded: boolean; hiDPILegendImages?: Record; printNativeAngle?: boolean; queryable: boolean; queryLayers?: string; queryLayersRanges: { [name: string]: { minResolution?: number; maxResolution?: number; }; }; filter?: WfsFilter; timeOptions?: ITimeOptions; snapOptions?: ISnappingConfig; snapActive: boolean; timeRestriction?: string; timeAttribute?: string; editable?: string; constructor(id: number, name: string, order: number, ogcServer: ServerOgc, options?: GMFTreeItem | LayerWmsOptions); clone(): LayerWms; static isResolutionRangeRestricted(minResolution: number | undefined, maxResolution: number | undefined): boolean | 0 | undefined; hasRestrictedResolution(): boolean | 0 | undefined; static isInVisibleRange(resolution: number, minResolution: number | undefined, maxResolution: number | undefined): boolean; isVisibleAtResolution(resolution: number): boolean; get hasFilter(): boolean; get hasTimeRestriction(): boolean; setDefaultTimeRestriction(): void; get serverUniqueQueryId(): string; get wfsQueryable(): boolean; get wmsQueryableOnly(): boolean; private static isGMFTreeItem; private static getOptionsFromGMFTreeItem; } export default LayerWms;