import WMTS, { Options as WMTSSourceOptions } from "ol/source/WMTS"; import { MapModel } from "../model/MapModel"; import { InternalConstructorTag } from "../utils/InternalConstructorTag"; import { AbstractLayer } from "./AbstractLayer"; import { ATTACH_TO_MAP, LayerDependencies } from "./shared/internals"; import { LayerConfig } from "./shared/LayerConfig"; /** * Configuration options supported by {@link WMTSLayer}. * * @group Layers */ export interface WMTSLayerConfig extends LayerConfig { /** URL of the WMTS service. */ url: string; /** The name of the WMTS layer in the service's capabilities. */ name: string; /** The name of the tile matrix set in the service's capabilities. */ matrixSet: string; /** * Additional source options for the layer's WMTS source. * * NOTE: These options are intended for advanced configuration: * the WMTS Layer manages some of the OpenLayers source options itself. */ sourceOptions?: Partial; } /** * Displays an OGC Web Map Tile Service (WMTS). * * @group Layers */ export declare class WMTSLayer extends AbstractLayer { #private; /** * @deprecated Prefer using {@link LayerFactory.create} instead of calling the constructor directly */ constructor(config: WMTSLayerConfig); /** * NOTE: Do not use this overload. Use {@link LayerFactory.create} instead. * * @internal */ constructor(config: WMTSLayerConfig, deps: LayerDependencies, internalTag: InternalConstructorTag); destroy(): void; get type(): "wmts"; /** * Returns the current source associated with this layer as a reactive property. * * Note that the return type may be expanded in the future with additional source types. */ get olSource(): WMTS | undefined; /** URL of the WMTS service. */ get legend(): string | undefined; get sublayers(): undefined; get layers(): undefined; get url(): string; /** The name of the WMTS layer in the service's capabilities. */ get name(): string; /** The name of the tile matrix set in the service's capabilities. */ get matrixSet(): string; [ATTACH_TO_MAP](map: MapModel): void; }