Class: DoubleClickZoom

ol/interaction/DoubleClickZoom~DoubleClickZoom


import DoubleClickZoom from 'ol/interaction/DoubleClickZoom';

Allows the user to zoom by double-clicking on the map.

new DoubleClickZoom(opt_options)

interaction/DoubleClickZoom.js, line 20
Name Type Description
options

Options.

Name Type Default Description
duration number 250

Animation duration in milliseconds.

delta number 1

The zoom delta applied on each double click.