UNPKG

rlayers

Version:

React Components for OpenLayers

26 lines 945 B
import { MapBrowserEvent } from 'ol'; import { ObjectEvent } from 'ol/Object'; import { default as KeyboardPan } from 'ol/interaction/KeyboardPan'; import { default as RBaseInteraction } from './RBaseInteraction'; /** * @propsfor RKeyboardPan */ export interface RKeyboardPanProps { /** An optional OpenLayers condition */ condition?: (e: MapBrowserEvent<PointerEvent | KeyboardEvent | WheelEvent>) => boolean; /** Animation duration * @default 100 */ duration?: number; /** Pan delta * @default 128 */ pixelDelta?: number; /** Called on every change */ onChange?: (this: RKeyboardPan, e: ObjectEvent) => void; } /** Pan with the arrow keys on the keyboard */ export default class RKeyboardPan extends RBaseInteraction<RKeyboardPanProps> { protected static classProps: string[]; ol: KeyboardPan; createOL(props: RKeyboardPanProps): KeyboardPan; } //# sourceMappingURL=RKeyboardPan.d.ts.map