Revert "Implement ol.renderer.Layer#forEachFeatureAtCoordinate"

This reverts commit dd07fd7977.
This commit is contained in:
Frederic Junod
2015-05-05 09:38:50 +02:00
parent 56e8575e41
commit bb6192bc10
4 changed files with 68 additions and 18 deletions

View File

@@ -43,6 +43,28 @@ ol.renderer.dom.ImageLayer = function(imageLayer) {
goog.inherits(ol.renderer.dom.ImageLayer, ol.renderer.dom.Layer);
/**
* @inheritDoc
*/
ol.renderer.dom.ImageLayer.prototype.forEachFeatureAtCoordinate =
function(coordinate, frameState, callback, thisArg) {
var layer = this.getLayer();
var source = layer.getSource();
var resolution = frameState.viewState.resolution;
var rotation = frameState.viewState.rotation;
var skippedFeatureUids = frameState.skippedFeatureUids;
return source.forEachFeatureAtCoordinate(
coordinate, resolution, rotation, skippedFeatureUids,
/**
* @param {ol.Feature} feature Feature.
* @return {?} Callback result.
*/
function(feature) {
return callback.call(thisArg, feature, layer);
});
};
/**
* @inheritDoc
*/