Continue passing null instead of unmanaged layer to forEachFeatureAtCoordinate
This commit is contained in:
1 parent
9f0fefd42d
commit
5bc00d8535
3 files changed
+8
-7
No files matched your search
@@ -55,13 +55,13 @@ describe('ol.renderer.canvas.Map', function() {
|
||||
expect(cb.firstCall.args[1]).to.be(layer);
|
||||
});
|
||||
|
||||
it('calls callback for unmanaged layers', function() {
|
||||
it('calls callback with null for unmanaged layers', function() {
|
||||
layer.setMap(map);
|
||||
map.renderSync();
|
||||
var cb = sinon.spy();
|
||||
map.forEachFeatureAtPixel(map.getPixelFromCoordinate([0, 0]), cb);
|
||||
expect(cb).to.be.called();
|
||||
expect(cb.firstCall.args[1]).to.be(layer);
|
||||
expect(cb.firstCall.args[1]).to.be(null);
|
||||
});
|
||||
|
||||
it('calls callback with main layer when skipped feature on unmanaged layer', function() {
|
||||
|
||||
Reference in new issue
Block a user