Module: ol/interaction/DragAndDrop

ol/interaction/DragAndDrop


Classes

DragAndDropEvent
DragAndDrop

Type Definitions

Options{Object}

Properties:
Name Type Argument Description
formatConstructors Array.<(Class.<module:ol/format/Feature~FeatureFormat>|module:ol/format/Feature~FeatureFormat)> <optional>

Format constructors (and/or formats pre-constructed with options).

source VectorSource <optional>

Optional vector source where features will be added. If a source is provided all existing features will be removed and new features will be added when they are dropped on the target. If you want to add features to a vector source without removing the existing features (append only), instead of providing the source option listen for the "addfeatures" event.

projection ProjectionLike <optional>

Target projection. By default, the map's view's projection is used.

target HTMLElement <optional>

The element that is used as the drop target, default is the viewport element.