Classes
- DoubleClickZoom
- DragAndDrop
- DragAndDropEvent
- DragBox
- DragPan
- DragRotate
- DragRotateAndZoom
- DragZoom
- Draw
- Interaction
- KeyboardPan
- KeyboardZoom
- Modify
- MouseWheelZoom
- PinchRotate
- PinchZoom
- Pointer
- Select
Methods
-
experimental staticol.interaction.defaults(opt_options){ol.Collection}
-
This method is a convenience method to create a set of interactions to be used with an
ol.Map. Specific interactions can be excluded by setting the appropriate option to false in the constructor options, but the order of the interactions is fixed. If you want to specify a different order for interactions, you will need to create your ownol.interaction.Interactioninstances and insert them into aol.Collectionin the order you want before creating yourol.Mapinstance.Name Type Argument Description optionsoptional Defaults options.
Name Type Description altShiftDragRotateboolean | undefined Whether Alt-Shift-drag rotate is desired. Default is
true.doubleClickZoomboolean | undefined Whether double click zoom is desired. Default is
true.keyboardboolean | undefined Whether keyboard interaction is desired. Default is
true.mouseWheelZoomboolean | undefined Whether mousewheel zoom is desired. Default is
true.shiftDragZoomboolean | undefined Whether Shift-drag zoom is desired. Default is
true.dragPanboolean | undefined Whether drag pan is desired. Default is
true.pinchRotateboolean | undefined Whether pinch rotate is desired. Default is
true.pinchZoomboolean | undefined Whether pinch zoom is desired. Default is
true.zoomDeltanumber | undefined Zoom delta.
zoomDurationnumber | undefined Zoom duration.
Returns:
collection of interactions to be used with the ol.Map constructor's interactions option.
OpenLayers 3