]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/map/OpenSeadragon.js
second underworld map
[alttp.git] / resources / js / components / map / OpenSeadragon.js
index 52c0506b13fc8ffa89214431562cde8158c29417..3b670db8751ec4cd4c006afb80c93d7e5457b5a9 100644 (file)
@@ -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}`, {