Store rendererd source on the layer instead of the layer state

This commit is contained in:
Tim Schaub
2022-03-26 10:12:03 -06:00
parent f7605f538a
commit b8c04ee7c5
4 changed files with 35 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 867 B

View File

@@ -0,0 +1,27 @@
import Group from '../../../../src/ol/layer/Group.js';
import Map from '../../../../src/ol/Map.js';
import OSM from '../../../../src/ol/source/OSM.js';
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
import View from '../../../../src/ol/View.js';
new Map({
layers: [
new Group({
visible: false,
layers: [
new TileLayer({
source: new OSM(),
}),
],
}),
],
target: 'map',
view: new View({
center: [0, 0],
zoom: 0,
}),
});
render({
message: 'webgl tile layer in an invisible group is not rendered',
});