Explicit data tile size

This commit is contained in:
Tim Schaub
2022-05-06 12:32:48 -06:00
parent b29ad01c7a
commit 38b48bd341
13 changed files with 260 additions and 59 deletions

View File

@@ -0,0 +1,21 @@
import GeoTIFF from '../../../../src/ol/source/GeoTIFF.js';
import Map from '../../../../src/ol/Map.js';
import TileLayer from '../../../../src/ol/layer/WebGLTile.js';
const source = new GeoTIFF({
convertToRGB: true,
sources: [{url: '/data/raster/non-square-pixels.tif'}],
});
new Map({
target: 'map',
layers: [new TileLayer({source})],
view: source.getView().then((config) => ({
...config,
rotation: Math.PI / 6,
})),
});
render({
message: 'properly renders rotated non-square pixels',
});