Add ol.renderer.Map#forEachFeatureAtPixel
This commit is contained in:
1 parent
65c922f580
commit
6f423726a9
1 file changed
+12
@@ -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