Type Definitions
- 
    olx.interaction.DefaultsOptions{Object} experimental
- 
    
    Interactions for the map. Default is truefor all options.Properties:Name Type Argument 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. 
- 
    olx.interaction.DoubleClickZoomOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description durationnumber | undefined <optional> 
 Animation duration in milliseconds. Default is 250.deltanumber | undefined <optional> 
 The zoom delta applied on each double click, default is 1.
- 
    olx.interaction.DragAndDropOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description formatConstructorsArray.<function(new:ol.format.Feature)> | undefined <optional> 
 Format constructors. projectionol.proj.ProjectionLike Target projection. By default, the map's view's projection is used. 
- 
    olx.interaction.DragBoxOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol.events.condition.always.styleol.style.Style Style for the box. 
- 
    olx.interaction.DragPanOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description kineticol.Kinetic | undefined <optional> 
 Kinetic inertia to apply to the pan. 
- 
    olx.interaction.DragRotateAndZoomOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol.events.condition.shiftKeyOnly.
- 
    olx.interaction.DragRotateOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol.events.condition.altShiftKeysOnly.
- 
    olx.interaction.DragZoomOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol.events.condition.shiftKeyOnly.styleol.style.Style Style for the box. 
- 
    olx.interaction.DrawOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description featuresol.Collection.<ol.Feature> | undefined <optional> 
 Destination collection for the drawn features. sourceol.source.Vector | undefined <optional> 
 Destination source for the drawn features. snapTolerancenumber | undefined <optional> 
 Pixel distance for snapping to the drawing finish. Default is 12.typeol.geom.GeometryType Drawing type ('Point', 'LineString', 'Polygon', 'MultiPoint', 'MultiLineString', or 'MultiPolygon'). minPointsPerRingnumber | undefined <optional> 
 The number of points that must be drawn before a polygon ring can be finished. Default is 3.styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined <optional> 
 Style for sketch features. geometryNamestring | undefined <optional> 
 Geometry name to use for features created by the draw interaction. conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. By defaultol.events.condition.noModifierKeysadds a vertex.
- 
    olx.interaction.InteractionOptions{Object} experimental
- 
    
    Object literal with config options for interactions. Properties:Name Type Description handleEventfunction Method called by the map to notify the interaction that a browser event was dispatched to the map. The function may return falseto prevent the propagation of the event to other interactions in the map's interactions chain. Required.
- 
    olx.interaction.KeyboardPanOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol.events.condition.noModifierKeysandol.events.condition.targetNotEditable.pixelDeltanumber | undefined <optional> 
 Pixel The amount to pan on each key press. Default is 128pixels.
- 
    olx.interaction.KeyboardZoomOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description durationnumber | undefined <optional> 
 Animation duration in milliseconds. Default is 100.conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isol.events.condition.targetNotEditable.deltanumber | undefined <optional> 
 The amount to zoom on each key press. Default is 1.
- 
    olx.interaction.ModifyOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description deleteConditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. By default,ol.events.condition.singleClickwithol.events.condition.noModifierKeysresults in a vertex deletion.pixelTolerancenumber | undefined <optional> 
 Pixel tolerance for considering the pointer close enough to a segment or vertex for editing. Default is 10pixels.styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined <optional> 
 FeatureOverlay style. featuresol.Collection.<ol.Feature> The features the interaction works on. 
- 
    olx.interaction.MouseWheelZoomOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description durationnumber | undefined <optional> 
 Animation duration in milliseconds. Default is 250.
- 
    olx.interaction.PinchRotateOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description thresholdnumber | undefined <optional> 
 Minimal angle in radians to start a rotation. Default is 0.3.
- 
    olx.interaction.PinchZoomOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description durationnumber | undefined <optional> 
 Animation duration in milliseconds. Default is 400.
- 
    olx.interaction.PointerOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description handleDownEventfunction | undefined <optional> 
 Function handling "down" events. If the function returns truethen a drag sequence is started.handleDragEventfunction | undefined <optional> 
 Function handling "drag" events. This function is called on "move" events during a drag sequence. handleEventfunction | undefined <optional> 
 Method called by the map to notify the interaction that a browser event was dispatched to the map. The function may return falseto prevent the propagation of the event to other interactions in the map's interactions chain.handleMoveEventfunction | undefined <optional> 
 Function handling "move" events. This function is called on "move" events, also during a drag sequence (so during a drag sequence both the handleDragEventfunction and this function are called).handleUpEventfunction | undefined <optional> 
 Function handling "up" events. If the function returns falsethen the current drag sequence is stopped.
- 
    olx.interaction.SelectOptions{Object} experimental
- 
    
    
    
Properties:Name Type Argument Description addConditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. By default, this isol.events.condition.never. Use this if you want to use different events for add and remove instead oftoggle.conditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. This is the event for the selected features as a whole. By default, this isol.events.condition.singleClick. Clicking on a feature selects that feature and removes any that were in the selection. Clicking outside any feature removes all from the selection. Seetoggle,add,removeoptions for adding/removing extra features to/ from the selection.layersArray.<ol.layer.Layer> | function A list of layers from which features should be selected. Alternatively, a filter function can be provided. The function will be called for each layer in the map and should return truefor layers that you want to be selectable. If the option is absent, all visible layers will be considered selectable.styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined <optional> 
 Style for the selected features (those in the FeatureOverlay). removeConditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. By default, this isol.events.condition.never. Use this if you want to use different events for add and remove instead oftoggle.toggleConditionol.events.ConditionType | undefined <optional> 
 A function that takes an ol.MapBrowserEventand returns a boolean to indicate whether that event should be handled. This is in addition to theconditionevent. By default,ol.events.condition.shiftKeyOnly, i.e. pressingshiftas well as theconditionevent, adds that feature to the current selection if it is not currently selected, and removes it if it is. Seeaddandremoveif you want to use different events instead of a toggle.multiboolean | undefined <optional> 
 A boolean that determines if the default behaviour should select only single features or all (overlapping) features at the clicked map position. Default is false i.e single select 
 OpenLayers 3
 OpenLayers 3