Pass null as forEachFeatureAtPixel layer arg for unmanaged layers

This commit is contained in:
Andreas Hocevar
2015-11-06 21:31:25 +01:00
parent 5b817f3146
commit 1aea2c2b0c
5 changed files with 24 additions and 4 deletions

View File

@@ -174,7 +174,9 @@ ol.renderer.Map.prototype.forEachFeatureAtCoordinate =
if (layer.getSource()) {
result = layerRenderer.forEachFeatureAtCoordinate(
layer.getSource().getWrapX() ? translatedCoordinate : coordinate,
frameState, callback, thisArg);
frameState,
layerState.managed ? callback : forEachFeatureAtCoordinate,
thisArg);
}
if (result) {
return result;