rlayers
Version:
React Components for OpenLayers
27 lines • 953 B
TypeScript
import React from 'react';
import { Tile as LayerTile } from 'ol/layer';
import { TileJSON } from 'ol/source';
import type { Options } from 'ol/source/TileJSON';
import { RContextType } from '../context';
import { default as RLayerRaster, RLayerRasterProps } from './RLayerRaster';
/**
* @propsfor RLayerTileJSON
*/
export interface RLayerTileJSONProps extends RLayerRasterProps {
/** An URL for loading the tiles with the usual {x}{y}{z} semantics */
url?: string;
projection?: never;
tileSize?: Options['tileSize'];
}
/**
* A layer with data from TileJSON tiles
*
* Requires an `RMap` context
*/
export default class RLayerTileJSON extends RLayerRaster<RLayerTileJSONProps> {
ol: LayerTile<TileJSON>;
source: TileJSON;
constructor(props: Readonly<RLayerTileJSONProps>, context?: React.Context<RContextType>);
protected refresh(prevProps?: RLayerTileJSONProps): void;
}
//# sourceMappingURL=RLayerTileJSON.d.ts.map