Make ol.interaction.DragAndDrop fire an event instead of managing layers and sources

This commit is contained in:
Tom Payne
2014-01-22 16:46:26 +01:00
parent 6df6a26764
commit 6cb02724da
3 changed files with 75 additions and 65 deletions

View File

@@ -282,17 +282,10 @@
/**
* @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.
* @property {ol.feature.StyleFunction|undefined} styleFunction Style function.
* This is used to configure any new layers created.
* @property {ol.proj.ProjectionLike} reprojectTo Target projection. By
* default, the map's view's projection is used.
*/
/**