rlayers
Version:
React Components for OpenLayers
23 lines • 778 B
TypeScript
import TileLayer from 'ol/layer/Tile';
import TileWMS from 'ol/source/TileWMS';
import React from 'react';
import { RContextType } from '../context';
import { default as RLayerRaster, RLayerRasterProps } from './RLayerRaster';
/**
* @propsfor RLayerTileWMS
*/
export interface RLayerTileWMSProps extends RLayerRasterProps {
params?: Record<string, unknown>;
url: string;
}
/**
* Tiled layer using WMS
*/
export default class RLayerTileWMS extends RLayerRaster<RLayerTileWMSProps> {
ol: TileLayer<TileWMS>;
source: TileWMS;
constructor(props: Readonly<RLayerTileWMSProps>, context?: React.Context<RContextType>);
protected createSource(): void;
protected refresh(prevProps?: RLayerTileWMSProps): void;
}
//# sourceMappingURL=RLayerTileWMS.d.ts.map