Keep track of when a layer is unrendered

This commit is contained in:
Tim Schaub
2022-02-08 09:20:22 -07:00
parent eb4d5e0784
commit bd86639351
6 changed files with 118 additions and 18 deletions
+7
View File
@@ -69,6 +69,13 @@ describe('ol/layer/Tile', function () {
expect(data[2]).to.be(208);
expect(data[3]).to.be(255);
});
it('gets pixel data', () => {
layer.setVisible(false);
map.renderSync();
const data = layer.getData([50, 50]);
expect(data).to.be(null);
});
});
describe('frameState.animate after tile transition with layer opacity', function () {