From 338a96033777ec2b646a8fe4084de42c9869ec8d Mon Sep 17 00:00:00 2001
From: Moritz Stueckler <moritz.stueckler@gmail.com>
Date: Wed, 17 Nov 2021 16:57:05 -0800
Subject: [PATCH] fix: don't show layer control when single poi is selected

---
 src/components/Map/Map.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/Map/Map.tsx b/src/components/Map/Map.tsx
index a5d4934..aac90b7 100644
--- a/src/components/Map/Map.tsx
+++ b/src/components/Map/Map.tsx
@@ -49,7 +49,7 @@ export const Map: React.FC<Props> = ({ createMode }) => {
 
   return (
     <div className="relative h-full w-full z-0">
-      {!createMode && <MapLayerControl />}
+      {!createMode && !selectedPoi && <MapLayerControl />}
       <MapContainer id={'mapid'} className={'h-full w-full z-0'} scrollWheelZoom={true}>
         <TileLayer
           attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
-- 
GitLab