Allow data tile source loader to return a value or a promise

This commit is contained in:
Tim Schaub
2021-11-20 13:49:10 -07:00
parent fcb39c84ce
commit f6f34f82e5
10 changed files with 100 additions and 13 deletions
@@ -252,7 +252,7 @@ describe('ol/renderer/webgl/Layer', function () {
className: className,
source: new DataTileSource({
loader(z, x, y) {
return Promise.resolve(new ImageData(256, 256));
return new ImageData(256, 256);
},
}),
});