Merge pull request #1504 from elemoine/vector-api-image-vector-hit-detection

[vector-api] Vector image hit detection
This commit is contained in:
Éric Lemoine
2014-01-14 03:33:47 -08:00
12 changed files with 196 additions and 35 deletions

View File

@@ -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);
};