X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fmap%2FOpenSeadragon.js;h=3b670db8751ec4cd4c006afb80c93d7e5457b5a9;hb=52dbc97730d1884d3c452fea52be5f5f0e6659e4;hp=52c0506b13fc8ffa89214431562cde8158c29417;hpb=f0ca8caa3db00bedbf2b992d3d72b401bf353689;p=alttp.git diff --git a/resources/js/components/map/OpenSeadragon.js b/resources/js/components/map/OpenSeadragon.js index 52c0506..3b670db 100644 --- a/resources/js/components/map/OpenSeadragon.js +++ b/resources/js/components/map/OpenSeadragon.js @@ -97,6 +97,15 @@ export const Provider = React.forwardRef(({ children }, ref) => { 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', }), ], }); @@ -121,6 +130,9 @@ export const Provider = React.forwardRef(({ children }, ref) => { case 'uw': viewer.goToPage(3); break; + case 'uw2': + viewer.goToPage(4); + break; } const controller = new AbortController(); axios.get(`/api/markers/${activeMap}`, {