Return for getFeatureInfoForPixel

In b8a9aeb14e a return was added to `ol.renderer.Layer.prototype.getFeatureInfoForPixel`.  The `ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel` method needs the same.
This commit is contained in:
Tim Schaub
2013-11-25 15:29:40 -07:00
parent b5335b970d
commit b235fe25ea

View File

@@ -220,10 +220,7 @@ ol.renderer.canvas.VectorLayer.prototype.getTransform = function() {
/**
* @param {ol.Pixel} pixel Pixel coordinate relative to the map viewport.
* @param {function(string, ol.layer.Layer)} success Callback for
* successful queries. The passed arguments are the resulting feature
* information and the layer.
* @inheritDoc
*/
ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
function(pixel, success) {
@@ -231,6 +228,7 @@ ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
success(layer.getTransformFeatureInfo()(features), layer);
};
this.getFeaturesForPixel(pixel, callback);
return true;
};