Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove generic type LineString | Point in favor of the default Geometry #634

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