Add ol.Map#forEachFeatureAtPixel
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user