Add target property to drag&drop interaction

This commit is contained in:
tsauerwein
2016-02-19 16:03:35 +01:00
parent 6c7d6817bd
commit 1e8bbb0ae4
3 changed files with 33 additions and 2 deletions

View File

@@ -2372,7 +2372,8 @@ olx.interaction.DoubleClickZoomOptions.prototype.delta;
/**
* @typedef {{formatConstructors: (Array.<function(new: ol.format.Feature)>|undefined),
* projection: ol.proj.ProjectionLike}}
* projection: ol.proj.ProjectionLike,
* target: (Element|undefined)}}
* @api
*/
olx.interaction.DragAndDropOptions;
@@ -2394,6 +2395,14 @@ olx.interaction.DragAndDropOptions.prototype.formatConstructors;
olx.interaction.DragAndDropOptions.prototype.projection;
/**
* The element that is used as the drop target, default is the viewport element.
* @type {Element|undefined}
* @api
*/
olx.interaction.DragAndDropOptions.prototype.target;
/**
* @typedef {{className: (string|undefined),
* condition: (ol.events.ConditionType|undefined),