Remove forEachFeatureAtCoordinate from ol/renderer/webgl/ImageLayer

This commit is contained in:
Frederic Junod
2018-10-17 15:42:52 +02:00
parent 3d72490241
commit 648ee4f4a4

View File

@@ -75,27 +75,6 @@ class WebGLImageLayerRenderer extends WebGLLayerRenderer {
gl, imageElement, CLAMP_TO_EDGE, CLAMP_TO_EDGE);
}
/**
* @inheritDoc
*/
forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg) {
const layer = this.getLayer();
const source = layer.getSource();
const resolution = frameState.viewState.resolution;
const rotation = frameState.viewState.rotation;
const skippedFeatureUids = frameState.skippedFeatureUids;
return source.forEachFeatureAtCoordinate(
coordinate, resolution, rotation, hitTolerance, skippedFeatureUids,
/**
* @param {import("../../Feature.js").FeatureLike} feature Feature.
* @return {?} Callback result.
*/
function(feature) {
return callback.call(thisArg, feature, layer);
});
}
/**
* @inheritDoc
*/