Add ol.Map#forEachFeatureAtPixel

This commit is contained in:
Éric Lemoine
2013-12-02 12:58:02 +01:00
parent 6f423726a9
commit 374d5f99f6
2 changed files with 10 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
@exportProperty ol.Map.prototype.addLayer
@exportProperty ol.Map.prototype.addOverlay
@exportProperty ol.Map.prototype.beforeRender
@exportProperty ol.Map.prototype.forEachFeatureAtPixel
@exportProperty ol.Map.prototype.getControls
@exportProperty ol.Map.prototype.getEventCoordinate
@exportProperty ol.Map.prototype.getEventPixel

View File

@@ -455,6 +455,15 @@ ol.Map.prototype.disposeInternal = function() {
};
/**
* @param {ol.Pixel} pixel Pixel.
* @param {function(ol.Feature)} callback Feature callback.
*/
ol.Map.prototype.forEachFeatureAtPixel = function(pixel, callback) {
this.renderer_.forEachFeatureAtPixel(pixel, callback);
};
/**
* Freeze rendering.
*/