diff --git a/src/Components/Map/UtopiaMap.tsx b/src/Components/Map/UtopiaMap.tsx index 09fb6e1e..278949a6 100644 --- a/src/Components/Map/UtopiaMap.tsx +++ b/src/Components/Map/UtopiaMap.tsx @@ -62,9 +62,13 @@ function UtopiaMap({ const [itemFormPopup, setItemFormPopup] = useState(null); + const [embedded, setEmbedded] = useState(true) + useEffect(() => { let params = new URLSearchParams(location.search); let urlPosition = params.get("position"); + let embedded = params.get("embedded"); + embedded != "true" && setEmbedded(false) }, [location]); const onEachFeature = (feature: Feature, layer: L.Layer) => { @@ -83,7 +87,9 @@ function UtopiaMap({ - + {!embedded && ( + + )}