Add ol.interaction.DragAndDrop

This commit is contained in:
Tom Payne
2013-12-18 20:13:47 +01:00
parent 33bf2b746f
commit 5c517cde19
3 changed files with 216 additions and 0 deletions
+13
View File
@@ -274,6 +274,19 @@
* @todo stability experimental
*/
/**
* @typedef {Object} olx.interaction.DragAndDropOptions
* @property {boolean|undefined} fitView Fit view. Default is `true`.
* @property {Array.<function(new: ol.format.Format)>|undefined}
* formatConstructors Format constructors.
* @property {ol.source.Vector|undefined} source Source. If this is defined
* then features will be added to this source.
* @property {ol.layer.Vector|undefined} layer Layer. If this is defined then
* features will be added to this layer's source. If neither `source` nor
* `layer` are defined then the dropped features will be added as a new
* layer.
*/
/**
* @typedef {Object} olx.interaction.DragPanOptions
* @property {ol.Kinetic|undefined} kinetic Kinetic inertia to apply to the pan.