Classes
- DoubleClickZoom
- DragAndDrop
- DragAndDropEvent
- DragBox
- DragPan
- DragRotate
- DragRotateAndZoom
- DragZoom
- Draw
- Interaction
- KeyboardPan
- KeyboardZoom
- Modify
- MouseWheelZoom
- PinchRotate
- PinchZoom
- Pointer
- Select
Methods
-
staticol.interaction.defaults(opt_options){ol.Collection} experimental
-
Name Type Description optionsoptional Defaults options.
Name Type Description altShiftDragRotateboolean | undefined optional Whether Alt-Shift-drag rotate is desired. Default is
true.doubleClickZoomboolean | undefined optional Whether double click zoom is desired. Default is
true.keyboardboolean | undefined optional Whether keyboard interaction is desired. Default is
true.mouseWheelZoomboolean | undefined optional Whether mousewheel zoom is desired. Default is
true.shiftDragZoomboolean | undefined optional Whether Shift-drag zoom is desired. Default is
true.dragPanboolean | undefined optional Whether drag pan is desired. Default is
true.pinchRotateboolean | undefined optional Whether pinch rotate is desired. Default is
true.pinchZoomboolean | undefined optional Whether pinch zoom is desired. Default is
true.zoomDeltanumber | undefined optional Zoom delta.
zoomDurationnumber | undefined optional Zoom duration.
Returns:
A collection of interactions to be used with the ol.Map constructor's interactions option.
OpenLayers 3