Skip to content
Snippets Groups Projects
Commit 338a9603 authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

fix: don't show layer control when single poi is selected

parent 4952bba7
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment