ol.interaction. ol.interaction.DragRotate

new DragRotate

Stability: experimental

Allows the user to rotate the map by clicking and dragging on the map, normally combined with an ol.events.condition that limits it to when the alt and shift keys are held down.

This interaction is only supported for mouse devices.

Parameters:
Name Type Argument Description
options olx.interaction.DragRotateOptions <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 both shift and alt keys.

Source:
  • dragrotateinteraction.js, line 25

Extends

  • ol.interaction.Pointer