diff --git a/src/Components/Map/UtopiaMap.tsx b/src/Components/Map/UtopiaMap.tsx index 33300904..e21c66da 100644 --- a/src/Components/Map/UtopiaMap.tsx +++ b/src/Components/Map/UtopiaMap.tsx @@ -16,7 +16,6 @@ import { TagsControl } from "./Subcomponents/Controls/TagsControl"; import { useSelectPosition, useSetMapClicked,useSetSelectPosition } from "./hooks/useSelectPosition"; import { useClusterRef, useSetClusterRef } from "./hooks/useClusterRef"; import { Feature, Geometry as GeoJSONGeometry } from 'geojson'; -import {useAuth} from "../Auth"; import {FilterControl} from "./Subcomponents/Controls/FilterControl"; import {LayerControl} from "./Subcomponents/Controls/LayerControl"; import { useLayers } from "./hooks/useLayers"; @@ -88,8 +87,6 @@ function UtopiaMap({ }, [layers]) - const { isAuthenticated } = useAuth(); - const onEachFeature = (feature: Feature, layer: L.Layer) => { @@ -135,9 +132,7 @@ function UtopiaMap({ }} />} - {!embedded && isAuthenticated && ( - )} {selectNewItemPosition != null &&