mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-03-18 15:11:04 +01:00
Add parameters to map
This commit is contained in:
parent
a691dc49f9
commit
c1ec6a07f4
@ -81,12 +81,17 @@ function TopBar() {
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleRoomSelected(id)
|
||||||
|
{
|
||||||
|
alert('AA')
|
||||||
|
}
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return <>
|
return <>
|
||||||
<TopBar />
|
<TopBar />
|
||||||
|
|
||||||
<div style={{ flexGrow: '1', display: 'flex', flexDirection: 'line', flexWrap: 'nowrap' }}>
|
<div style={{ flexGrow: '1', display: 'flex', flexDirection: 'line', flexWrap: 'nowrap' }}>
|
||||||
<Map />
|
<Map callbackRoomSelected={handleRoomSelected} selectedRoom={null}/>
|
||||||
<RoomResearch />
|
<RoomResearch />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@ -108,7 +108,7 @@ function layers_list(requestList, cb, selectedRoom)
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Map({callbackRoomSelected, selectedRoom})
|
function Map({callbackRoomSelected, selectedRoom})
|
||||||
{
|
{
|
||||||
// When the user selects a room on the map, call callbackRoomSelected.
|
// When the user selects a room on the map, call callbackRoomSelected.
|
||||||
// The room that is currently selected is selectedRoom. It is null if no room
|
// The room that is currently selected is selectedRoom. It is null if no room
|
||||||
// is selected
|
// is selected
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user