Merge pull request #1504 from elemoine/vector-api-image-vector-hit-detection
[vector-api] Vector image hit detection
This commit is contained in:
@@ -498,9 +498,13 @@ ol.Map.prototype.disposeInternal = function() {
|
||||
*/
|
||||
ol.Map.prototype.forEachFeatureAtPixel =
|
||||
function(pixel, callback, opt_obj, opt_layerFunction, opt_obj2) {
|
||||
// FIXME this function should probably take an options object
|
||||
if (goog.isNull(this.frameState_)) {
|
||||
return;
|
||||
}
|
||||
var coordinate = this.getCoordinateFromPixel(pixel);
|
||||
return this.renderer_.forEachFeatureAtPixel(
|
||||
pixel, callback, opt_obj, opt_layerFunction, opt_obj2);
|
||||
coordinate, this.frameState_, callback, opt_obj,
|
||||
opt_layerFunction, opt_obj2);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user