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.

Fires:

Extends

Observable Properties

Name Type Settable ol/Object.ObjectEvent type Description
active boolean yes change:active

true if the interaction is active, false otherwise.

Methods

handleEvent() inherited

interaction/Pointer.js, line 120

Handles the map browser event and may call into other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are detected.