Fix arguments passed to forEachLayerAtCoordinate

This commit is contained in:
Kevin Schmidt
2018-10-16 08:32:18 -06:00
parent 076d6425cb
commit f7adeac774

View File

@@ -120,7 +120,7 @@ class IntermediateCanvasRenderer extends CanvasLayerRenderer {
if (this.getLayer().getSource().forEachFeatureAtCoordinate !== VOID) {
// for ImageCanvas sources use the original hit-detection logic,
// so that for example also transparent polygons are detected
return super.forEachLayerAtCoordinate(arguments);
return super.forEachLayerAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg);
} else {
const pixel = applyTransform(this.coordinateToCanvasPixelTransform, coordinate.slice());
scaleCoordinate(pixel, frameState.viewState.resolution / this.renderedResolution);