From eeb63a2523b11626f72d07a60cf970aa0a0d0d58 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Fri, 23 Dec 2022 11:16:51 +0000 Subject: [PATCH] fix: start fixing photo map --- src/components/widgets/background/PhotoInformation.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/background/PhotoInformation.jsx b/src/components/widgets/background/PhotoInformation.jsx index d7d9bfe4..6e00f871 100644 --- a/src/components/widgets/background/PhotoInformation.jsx +++ b/src/components/widgets/background/PhotoInformation.jsx @@ -162,6 +162,11 @@ function PhotoInformation({ info, url, api }) { ); }; + let photoMapClassList = 'map-concept'; + if (usePhotoMap) { + photoMapClassList += ' photoMap'; + } + // only request map image if the user looks at the photo information // this is to reduce requests to the api try { @@ -204,8 +209,8 @@ function PhotoInformation({ info, url, api }) { onMouseEnter={() => setshowExtraInfo(true)} onMouseLeave={() => setshowExtraInfo(false)} > -
- +
+ {!showingPhotoMap ? : ''} {photoMap()}
{showingPhotoMap ? (