@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
60 lines (59 loc) • 2 kB
TypeScript
import { GMFTreeItem } from '../gmf.js';
import ServerOgc from '../serverogc.js';
import ILayerWithLegend from './ilayerwithlegend.js';
import Layer from './layer.js';
import TileLayer from 'ol/layer/Tile.js';
import WMTS from 'ol/source/WMTS.js';
export type LayerWmtsOptions = {
isDefaultChecked?: boolean;
disclaimer?: string;
metadataUrl?: string;
opacity?: number;
restricted?: boolean;
dimensions?: Record<string, object>;
imageType?: string;
style?: string;
wmsLayers?: string;
queryLayers?: string;
maxQueryResolution?: number;
minQueryResolution?: number;
ogcServer?: string;
printLayers?: string;
minResolution?: number;
maxResolution?: number;
legend?: boolean;
legendImage?: string;
isLegendExpanded?: boolean;
wasLegendExpanded?: boolean;
hiDPILegendImages?: Record<string, string>;
};
declare class LayerWmts extends Layer implements ILayerWithLegend {
url: string;
layer: string;
dimensions?: Record<string, object>;
imageType?: string;
style?: string;
minResolution?: number;
maxResolution?: number;
legend: boolean;
legendImage?: string;
isLegendExpanded: boolean;
wasLegendExpanded: boolean;
ogcServer?: ServerOgc;
wmsLayers?: string;
queryLayers?: string;
maxQueryResolution?: number;
minQueryResolution?: number;
printLayers?: string;
hiDPILegendImages?: Record<string, string>;
/** Linked ol layer, starting with an underscore to not be part of the proxy. **/
_olayer?: TileLayer<WMTS>;
constructor(id: number, name: string, order: number, url: string, layer: string, options?: GMFTreeItem | LayerWmtsOptions, ogcServer?: ServerOgc);
clone(): LayerWmts;
get layerUniqueId(): string;
hasRestrictedResolution(): boolean | 0 | undefined;
isVisibleAtResolution(resolution: number): boolean;
private static isGMFTreeItem;
private static getOptionsFromGMFTreeItem;
}
export default LayerWmts;