File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
examples/playground/src/components/map Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ function OverlayControls() {
118
118
if ( ! chart ) return null
119
119
120
120
return (
121
- < div className = "absolute right-5 top-5 bg-blue-gray-500 z-[999] p-2 rounded-md flex flex-col gap-2" >
121
+ < div className = "absolute right-5 top-16 bg-blue-gray-500 z-[999] p-2 rounded-md flex flex-col gap-2" >
122
122
< div className = "flex justify-between items-center gap-3" >
123
123
< span className = "text-xs" >
124
124
{ chart . index_number } : { chart . name }
@@ -169,7 +169,6 @@ export default function MapPane() {
169
169
whenReady = { ( ) => {
170
170
setInterval ( ( ) => mapRef . current ?. invalidateSize ( ) , 1000 )
171
171
} } >
172
- < OverlayControls />
173
172
{ mapVisible &&
174
173
( app && user ?. scope . includes ( Scope . TILES ) ? (
175
174
< NavigraphTiles auth = { app . auth } />
@@ -181,13 +180,14 @@ export default function MapPane() {
181
180
) ) }
182
181
{ charts && < ChartOverlay charts = { charts } /> }
183
182
{ user ?. scope . includes ( Scope . AMDB ) && < AmdbManager /> }
184
- < Button
185
- selected = { mapVisible }
186
- className = "absolute top-5 right-5 z-[999]"
187
- onClick = { ( ) => setMapVisible ( ! mapVisible ) } >
188
- Map Visible
189
- </ Button >
190
183
</ MapContainer >
184
+ < OverlayControls />
185
+ < Button
186
+ selected = { mapVisible }
187
+ className = "absolute top-5 right-5 z-[999]"
188
+ onClick = { ( ) => setMapVisible ( ! mapVisible ) } >
189
+ Map Visible
190
+ </ Button >
191
191
</ div >
192
192
)
193
193
}
You can’t perform that action at this time.
0 commit comments