From 21f4d4998b6809c172ce579a6e505b18bd55a54e Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 20 Jul 2020 17:02:38 +0100 Subject: [PATCH] type casting --- src/ol/interaction/DragAndDrop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) );