Class: PinchRotate

ol/interaction/PinchRotate~PinchRotate


import PinchRotate from 'ol/interaction/PinchRotate';

Allows the user to rotate the map by twisting with two fingers on a touch screen.

new PinchRotate(opt_options)

interaction/PinchRotate.js, line 25
Name Type Description
options

Options.

Name Type Default Description
duration number 250

The duration of the animation in milliseconds.

threshold number 0.3

Minimal angle in radians to start a rotation.