Fix typing errors.

This commit is contained in:
Simon Seyock
2021-08-06 11:07:24 +02:00
parent d6e0eb75fa
commit f636d68cce
4 changed files with 17 additions and 5 deletions

View File

@@ -1167,7 +1167,11 @@ class Modify extends PointerInteraction {
map.forEachFeatureAtPixel(
pixel,
(feature, layer, geometry) => {
geometry = geometry || feature.getGeometry();
geometry =
geometry ||
/** @type {import("../geom/SimpleGeometry").default} */ (
feature.getGeometry()
);
if (
geometry.getType() === GeometryType.POINT &&
includes(this.features_.getArray(), feature)