Classes
Members
-
DragAndDropEventType{string}
-
Properties:
Name Type Default Description ADD_FEATURES
string addfeatures
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Description formatConstructors
Array.<Class.<module:ol/format/Feature~FeatureFormat>> <optional>
Format constructors.
source
module:ol/source/Vector~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
module:ol/proj~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.