UNPKG

rlayers

Version:

React Components for OpenLayers

33 lines 971 B
import React from 'react'; import { Zoom } from 'ol/control'; import { Options } from 'ol/control/Zoom'; import { RContextType } from '../context'; import { default as RControlBase, RControlProps } from './RControlBase'; /** * @propsfor RZoom */ export interface RZoomProps extends RControlProps { /** Animation duration */ duration?: number; /** Zoom in label instead of + */ zoomInLabel?: string; /** Zoom out label instead of - */ zoomOutLabel?: string; /** Zoom in tip */ zoomInTipLabel?: string; /** Zoom out tip */ zoomOutTipLabel?: string; /** Amount to zoom at each step */ delta?: number; } /** * Zoom control * * Requires an `RMap` context */ export default class RZoom extends RControlBase<RZoomProps, Record<string, never>> { ol: Zoom; constructor(props: Readonly<RZoomProps>, context?: React.Context<RContextType>); toOLProps(props: RZoomProps): Options; } //# sourceMappingURL=RZoom.d.ts.map