]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/pages/Map.js
UW grid overlay
[alttp.git] / resources / js / components / pages / Map.js
index cbd3581d8d4a90c1266d2c74a4bff2451a1fcc95..b27560261194512b99000b6ac389c23c349983a1 100644 (file)
@@ -7,8 +7,11 @@ import Buttons from '../map/Buttons';
 import List from '../map/List';
 import OpenSeadragon from '../map/OpenSeadragon';
 import Pins from '../map/Pins';
+import UWSuperTiles from '../map/UWSuperTiles';
 
 const Map = () => {
+       const [uwOverlay, setUWOverlay] = React.useState(false);
+
        const container = React.useRef();
        const { t } = useTranslation();
 
@@ -18,12 +21,13 @@ const Map = () => {
                        <meta name="description" content={t('map.description')} />
                </Helmet>
                <OpenSeadragon ref={container}>
-                       <div className="d-flex align-items-center justify-content-between">
+                       <div className="d-flex align-items-start justify-content-between">
                                <h1>{t('map.heading')}</h1>
-                               <Buttons />
+                               <Buttons setUWOverlay={setUWOverlay} uwOverlay={uwOverlay} />
                        </div>
                        <div ref={container} style={{ height: '80vh' }} />
                        <Pins />
+                       <UWSuperTiles show={uwOverlay} />
                        <List />
                </OpenSeadragon>
        </Container>;