maxLevel: 14,
tilesUrl: '/media/alttp/map/uw_files/',
fileFormat: 'png',
+ }), new OpenSeadragon.DziTileSource({
+ width: 16384,
+ height: 3072,
+ tileSize: 256,
+ tileOverlap: 0,
+ minLevel: 8,
+ maxLevel: 14,
+ tilesUrl: '/media/alttp/map/uw2_files/',
+ fileFormat: 'png',
}),
],
});
+ v.addHandler('canvas-nonprimary-press', e => {
+ if (e.button === 3) {
+ navigate(-1);
+ } else if (e.button === 4) {
+ navigate(1);
+ }
+ });
setViewer(v);
return () => {
v.destroy();
case 'uw':
viewer.goToPage(3);
break;
+ case 'uw2':
+ viewer.goToPage(4);
+ break;
}
const controller = new AbortController();
axios.get(`/api/markers/${activeMap}`, {