rlayers
Version:
React Components for OpenLayers
38 lines • 1.41 kB
TypeScript
import { ImageTile } from 'ol';
import { WebGLTile as LayerTileWebGL } from 'ol/layer';
import { ImageTile as SourceImageTile } from 'ol/source';
import TileGrid from 'ol/tilegrid/TileGrid';
import { default as RLayerWebGL, RLayerWebGLProps } from './RLayerWebGL';
/**
* @propsfor RLayerTileWebGL
*/
export interface RLayerTileWebGLProps extends RLayerWebGLProps {
/** An URL for loading the tiles with the usual {x}{y}{z} semantics */
url?: string;
/**
* Custom OpenLayers TileGrid for sources that do not cover the world
* or use non-standard zoom levels
* Take care to pass a constant object, because otherwise
* the layer must be recreated at every render
* (ie pass a constant variable, not an anonymous {})
*/
tileGrid?: TileGrid;
/**
* By default, OpenLayers uses interpolation to smooth images when zooming.
* Setting this value to true will override that.
*/
noIterpolation?: boolean;
}
/**
* A layer with XYZ raster tiles rendered by WebGL
*
* Requires an `RMap` context
*/
export default class RLayerTileWebGL extends RLayerWebGL<RLayerTileWebGLProps, ImageTile> {
ol: LayerTileWebGL;
source: SourceImageTile;
constructor(props: Readonly<RLayerTileWebGLProps>);
protected createSource(): void;
protected refresh(prevProps?: RLayerTileWebGLProps): void;
}
//# sourceMappingURL=RLayerTileWebGL.d.ts.map