Class: PinchZoom

ol/interaction/PinchZoom~PinchZoom


import PinchZoom from 'ol/interaction/PinchZoom';

Allows the user to zoom the map by pinching with two fingers on a touch screen.

new PinchZoom(opt_options)

interaction/PinchZoom.js, line 24
Name Type Description
options

Options.

Name Type Default Description
duration number 400

Animation duration in milliseconds.

constrainResolution boolean false

Zoom to the closest integer zoom level after the pinch gesture ends.