type casting
This commit is contained in:
@@ -149,13 +149,13 @@ class DragAndDrop extends Interaction {
|
|||||||
if (features && features.length > 0) {
|
if (features && features.length > 0) {
|
||||||
if (this.source_) {
|
if (this.source_) {
|
||||||
this.source_.clear();
|
this.source_.clear();
|
||||||
this.source_.addFeatures(features);
|
this.source_.addFeatures(/** @type {Array<import("../Feature.js").default>} */ (features));
|
||||||
}
|
}
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
new DragAndDropEvent(
|
new DragAndDropEvent(
|
||||||
DragAndDropEventType.ADD_FEATURES,
|
DragAndDropEventType.ADD_FEATURES,
|
||||||
file,
|
file,
|
||||||
features,
|
/** @type {Array<import("../Feature.js").default>} */ (features),
|
||||||
projection
|
projection
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user