Add ol.renderer.Map#forEachFeatureAtPixel
This commit is contained in:
@@ -78,6 +78,18 @@ ol.renderer.Map.prototype.disposeInternal = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.Pixel} pixel Pixel.
|
||||
* @param {function(ol.Feature)} callback Feature callback.
|
||||
*/
|
||||
ol.renderer.Map.prototype.forEachFeatureAtPixel =
|
||||
function(pixel, callback) {
|
||||
goog.object.forEach(this.layerRenderers_, function(layerRenderer) {
|
||||
layerRenderer.forEachFeatureAtPixel(pixel, callback);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.layer.Layer} layer Layer.
|
||||
* @protected
|
||||
|
||||
Reference in New Issue
Block a user