Merge pull request #1315 from tschaub/gfi-return
Return for getFeatureInfoForPixel.
This commit is contained in:
@@ -220,10 +220,7 @@ ol.renderer.canvas.VectorLayer.prototype.getTransform = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Pixel} pixel Pixel coordinate relative to the map viewport.
|
* @inheritDoc
|
||||||
* @param {function(string, ol.layer.Layer)} success Callback for
|
|
||||||
* successful queries. The passed arguments are the resulting feature
|
|
||||||
* information and the layer.
|
|
||||||
*/
|
*/
|
||||||
ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
|
ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
|
||||||
function(pixel, success) {
|
function(pixel, success) {
|
||||||
@@ -231,6 +228,7 @@ ol.renderer.canvas.VectorLayer.prototype.getFeatureInfoForPixel =
|
|||||||
success(layer.getTransformFeatureInfo()(features), layer);
|
success(layer.getTransformFeatureInfo()(features), layer);
|
||||||
};
|
};
|
||||||
this.getFeaturesForPixel(pixel, callback);
|
this.getFeaturesForPixel(pixel, callback);
|
||||||
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user