defer preload of tiles not immediately required

This commit is contained in:
mike-000
2022-08-25 11:52:04 +01:00
parent 49234b2263
commit b3172a8c8b
2 changed files with 20 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@@ -0,0 +1,20 @@
import Map from '../../../../src/ol/Map.js';
import TileDebug from '../../../../src/ol/source/TileDebug.js';
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
import View from '../../../../src/ol/View.js';
new Map({
target: 'map',
layers: [
new TileLayer({
source: new TileDebug(),
preload: Infinity,
}),
],
view: new View({
center: [0, 0],
zoom: 0.5,
}),
});
render();