diff --git a/src/ol/interaction/DragAndDrop.js b/src/ol/interaction/DragAndDrop.js index b41287e2be..d5caa1aa39 100644 --- a/src/ol/interaction/DragAndDrop.js +++ b/src/ol/interaction/DragAndDrop.js @@ -149,13 +149,13 @@ class DragAndDrop extends Interaction { if (features && features.length > 0) { if (this.source_) { this.source_.clear(); - this.source_.addFeatures(features); + this.source_.addFeatures(/** @type {Array} */ (features)); } this.dispatchEvent( new DragAndDropEvent( DragAndDropEventType.ADD_FEATURES, file, - features, + /** @type {Array} */ (features), projection ) );