Class: DragZoom

Mapspace.interaction. DragZoom

Allows the user to zoom the viewer by clicking and dragging on the viewer, normally combined with an ol.events.condition that limits it to when a key, shift by default, is held down.

To change the style of the box, use CSS and the .ol-dragzoom selector, or your custom one configured with className.


new DragZoom( [opt_options])

Parameters:
Name Type Argument Description
opt_options olx.interaction.DragZoomOptions <optional>

Options.

Source:
mapspace/interaction/dragzoom.js

Extends

  • ol.interaction.DragZoom