rlayers
Version:
React Components for OpenLayers
23 lines • 862 B
TypeScript
import { MapBrowserEvent } from 'ol';
import { ObjectEvent } from 'ol/Object';
import { default as DragRotate } from 'ol/interaction/DragRotate';
import { default as RBaseInteraction } from './RBaseInteraction';
/**
* @propsfor RDragRotate
*/
export interface RDragRotateProps {
/** An optional OpenLayers condition */
condition?: (e: MapBrowserEvent<PointerEvent | KeyboardEvent | WheelEvent>) => boolean;
/** Animation duration
* @default 250 */
duration?: number;
/** Called on every change */
onChange?: (this: RDragRotate, e: ObjectEvent) => void;
}
/** Rotation by clicking and dragging */
export default class RDragRotate extends RBaseInteraction<RDragRotateProps> {
protected static classProps: string[];
ol: DragRotate;
createOL(props: RDragRotateProps): DragRotate;
}
//# sourceMappingURL=RDragRotate.d.ts.map