rlayers
Version:
React Components for OpenLayers
20 lines • 660 B
TypeScript
import { ObjectEvent } from 'ol/Object';
import { default as PinchZoom } from 'ol/interaction/PinchZoom';
import { default as RBaseInteraction } from './RBaseInteraction';
/**
* @propsfor RPinchZoom
*/
export interface RPinchZoomProps {
/** Animation duration
* @default 400 */
duration?: number;
/** Called on every change */
onChange?: (this: RPinchZoom, e: ObjectEvent) => void;
}
/** Zoom by pinching */
export default class RPinchZoom extends RBaseInteraction<RPinchZoomProps> {
protected static classProps: string[];
ol: PinchZoom;
createOL(props: RPinchZoomProps): PinchZoom;
}
//# sourceMappingURL=RPinchZoom.d.ts.map