Pass layer to forEachFeatureAtPixel callback
This fixes a bug where the layer renderer instead of the layer is passed to the forEachFeatureAtPixel callback.
This commit is contained in:
@@ -89,7 +89,7 @@ ol.renderer.webgl.ImageLayer.prototype.forEachFeatureAtPixel =
|
||||
* @return {?} Callback result.
|
||||
*/
|
||||
function(feature) {
|
||||
return callback.call(thisArg, feature, this);
|
||||
return callback.call(thisArg, feature, layer);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user