Add zDirection option to IIIF tile source

This commit is contained in:
Lutz Helm
2019-03-22 12:04:56 +01:00
committed by Lutz Helm
parent b77177ed74
commit 3cf9b5aa28
2 changed files with 10 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ function refreshMap(imageInfoUrl) {
return;
}
const extent = [0, -options.size[1], options.size[0], 0];
options.zDirection = -1;
layer.setSource(new IIIF(options));
map.setView(new View({
resolutions: layer.getSource().getTileGrid().getResolutions(),