UNPKG

rlayers

Version:

React Components for OpenLayers

22 lines 1.05 kB
import { Layer } from 'ol/layer'; import { Source } from 'ol/source'; import LayerRenderer from 'ol/renderer/Layer'; import { TileSourceEvent } from 'ol/source/Tile'; import { default as RLayer, RLayerProps } from './RLayer'; /** * @propsfor RLayerRaster */ export interface RLayerRasterProps extends RLayerProps { /** Triggered when all currently visible tiles have finished loading */ onTileLoadEnd?: (this: RLayerRaster<RLayerRasterProps>, e: TileSourceEvent) => void; /** Called when a tile starts loading */ onTileLoadStart?: (this: RLayerRaster<RLayerRasterProps>, e: TileSourceEvent) => void; /** Called when tile loading results in an error */ onTileLoadError?: (this: RLayerRaster<RLayerRasterProps>, e: TileSourceEvent) => void; } /** The common base of all tiled (even if not raster) layers, not meant to be used directly */ export default class RLayerRaster<P extends RLayerRasterProps> extends RLayer<P> { ol: Layer<Source, LayerRenderer<any>>; source: Source; } //# sourceMappingURL=RLayerRaster.d.ts.map