ol.interaction. ol.interaction.DragRotateAndZoom

new DragRotateAndZoom

Stability: experimental

Allows the user to zoom and rotate the map by clicking and dragging on the map. By default, this interaction is limited to when the shift key is held down.

This interaction is only supported for mouse devices.

And this interaction is not included in the default interactions.

Parameters:
Name Type Argument Description
options olx.interaction.DragRotateAndZoomOptions <optional>

Options.

Properties
Name Type Description
condition ol.events.ConditionType | undefined

A conditional modifier (i.e. Shift key) that determines if the interaction is active or not, default is shify key.

Source:
  • dragrotateandzoominteraction.js, line 31

Extends

  • ol.interaction.Pointer