Change signature of api methods

This commit is contained in:
simonseyock
2016-10-19 13:24:15 +02:00
committed by simonseyock
parent a6c768ae07
commit 80188b2044
4 changed files with 40 additions and 21 deletions

View File

@@ -111,10 +111,11 @@ describe('ol.renderer.canvas.Map', function() {
map.addLayer(layer);
map.renderSync();
var cb = sinon.spy();
map.forEachFeatureAtPixel(map.getPixelFromCoordinate([0, 0]), cb, null,
function() {
map.forEachFeatureAtPixel(map.getPixelFromCoordinate([0, 0]), {
layerFilter: function() {
return false;
});
}
}, cb);
expect(cb).to.not.be.called();
});