@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
90 lines (89 loc) • 3.1 kB
TypeScript
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<string, string>;
printNativeAngle?: boolean;
queryable?: boolean;
queryLayers?: string;
queryLayersRanges?: {
[name: string]: {
minResolution?: number;
maxResolution?: number;
};
};
wmsInfoFormat?: string;
time?: ITimeOptions;
snappingConfig?: ISnappingConfig;
timeAttribute?: string;
editable?: string;
enumeratedAttributes?: string[];
};
declare class LayerWms extends Layer implements ILayerWithLegend, ILayerWithFilter, ILayerWithTime {
ogcServer: ServerOgc;
minResolution?: number;
maxResolution?: number;
layers?: string;
style?: string;
legend: boolean;
iconUrl?: string;
legendRule?: string;
legendImage?: string;
wasLegendExpanded: boolean;
hiDPILegendImages?: Record<string, string>;
printNativeAngle?: boolean;
queryable: boolean;
queryLayers?: string;
queryLayersRanges: {
[name: string]: {
minResolution?: number;
maxResolution?: number;
};
};
wmsInfoFormat?: string;
filter?: WfsFilter;
timeOptions?: ITimeOptions;
snapOptions?: ISnappingConfig;
snapActive: boolean;
timeRestriction?: string;
timeAttribute?: string;
enumeratedAttributes?: 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;
private static getDefaultWmsInfoFormat;
}
export default LayerWms;