Remove forEachFeatureAtCoordinate from ol/renderer/webgl/ImageLayer
This commit is contained in:
@@ -75,27 +75,6 @@ class WebGLImageLayerRenderer extends WebGLLayerRenderer {
|
|||||||
gl, imageElement, CLAMP_TO_EDGE, CLAMP_TO_EDGE);
|
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
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user