Check hits for wrapped around geometries

This commit is contained in:
Simon Seyock
2019-09-25 18:02:04 +02:00
parent 6b5c2f47bb
commit 54cbe14f88
4 changed files with 34 additions and 20 deletions

View File

@@ -202,6 +202,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
const layer = this.getLayer();
/** @type {!Object<string, boolean>} */
const features = {};
const result = this.replayGroup_.forEachFeatureAtCoordinate(coordinate, resolution, rotation, hitTolerance,
/**
* @param {import("../../Feature.js").FeatureLike} feature Feature.
@@ -214,6 +215,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
return callback(feature, layer);
}
}, layer.getDeclutter() ? declutteredFeatures : null);
return result;
}
}