Support the wrapX option for WebGL rendered tile sources

This commit is contained in:
Tim Schaub
2022-01-11 12:48:49 -07:00
parent 1f761d943f
commit 647a0d8ece
3 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
import Map from '../../../../src/ol/Map.js';
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
import View from '../../../../src/ol/View.js';
import XYZ from '../../../../src/ol/source/XYZ.js';
document.getElementById('map').style.background = 'green';
new Map({
layers: [
new TileLayer({
source: new XYZ({
url: '/data/tiles/satellite/{z}/{x}/{y}.jpg',
transition: 0,
wrapX: false,
}),
}),
],
target: 'map',
view: new View({
center: [15700000, 2700000],
zoom: 2,
}),
});
render({
message: 'data tiles outside the world are not rendered',
});