Commit 338a9603 authored by Moritz Stückler's avatar Moritz Stückler 🤠
Browse files

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

parent 4952bba7
Pipeline #806 passed with stages
in 1 minute and 25 seconds
......@@ -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'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment