UNPKG

rlayers

Version:

React Components for OpenLayers

32 lines 987 B
import React from 'react'; import { Tile as LayerTile } from 'ol/layer'; import { StadiaMaps } from 'ol/source'; import { RContextType } from '../context'; import { default as RLayerRaster, RLayerRasterProps } from './RLayerRaster'; /** * @propsfor RLayerStadia */ export interface RLayerStadiaProps extends RLayerRasterProps { /** Stadia Maps layer name */ layer: string; /** API key */ apiKey?: string; /** Retina screen mode, @default false */ retina?: boolean; } /** * A ready to use interface for Stadia Maps's map service * * Requires OpenLayers 8.0 and must be imported separately * * `import RLayerStadia from 'rlayers/layer/RLayerStadia';` * * * Requires an `RMap` context */ export default class RLayerStadia extends RLayerRaster<RLayerStadiaProps> { ol: LayerTile<StadiaMaps>; source: StadiaMaps; constructor(props: Readonly<RLayerStadiaProps>, context?: React.Context<RContextType>); } //# sourceMappingURL=RLayerStadia.d.ts.map