UNPKG

@terrestris/ol-util

Version:

A set of helper classes for working with openLayers

16 lines (15 loc) 822 B
import OlBaseLayer from 'ol/layer/Base'; import OlImageLayer from 'ol/layer/Image'; import OlLayer from 'ol/layer/Layer'; import OlTileLayer from 'ol/layer/Tile'; import OlVectorLayer from 'ol/layer/Vector'; import OlImageWMS from 'ol/source/ImageWMS'; import OlTileWMS from 'ol/source/TileWMS'; import OlSourceVector from 'ol/source/Vector'; import OlSourceWMTS from 'ol/source/WMTS'; export type WmsLayer = OlImageLayer<OlImageWMS> | OlTileLayer<OlTileWMS> | OlLayer<OlImageWMS | OlTileWMS>; export type WmtsLayer = OlTileLayer<OlSourceWMTS>; export type WfsLayer = OlVectorLayer<OlSourceVector>; export declare function isWmsLayer(layer: OlBaseLayer): layer is WmsLayer; export declare function isWmtsLayer(layer: OlBaseLayer): layer is WmtsLayer; export declare function isWfsLayer(layer: OlLayer): layer is WfsLayer;