Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,8 @@ export class OlMapManager {
return false;
}
this.layerFeatureManagerDictionary
.get(
layer as VectorLayer<
VectorSource<LineString | Point>
>
)!
.onFeatureClicked(
event,
feature as Feature<LineString | Point>
);
.get(layer as VectorLayer<VectorSource>)!
.onFeatureClicked(event, feature as Feature);
// we only want the top one -> a truthy return breaks this loop
return true;
},
Expand Down Expand Up @@ -473,15 +466,11 @@ export class OlMapManager {
}
// We stop propagating the event as soon as the onFeatureDropped function returns true
return this.layerFeatureManagerDictionary
.get(
layer as VectorLayer<VectorSource<LineString | Point>>
)!
.get(layer as VectorLayer<VectorSource>)!
.onFeatureDrop(
event,
event.features.getArray()[0] as Feature<
LineString | Point
>,
feature as Feature<Point>
event.features.getArray()[0]!,
feature as Feature
);
});
});
Expand Down