Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Map
fabcity-map-frontend
Commits
338a9603
Commit
338a9603
authored
Nov 17, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/Map/Map.tsx
View file @
338a9603
...
...
@@ -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
=
'© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment