Boussole affichée en bas à droite sur Android
This commit is contained in:
parent
458183eba8
commit
4a33963c12
@ -13,6 +13,7 @@ export default function Map() {
|
|||||||
return (
|
return (
|
||||||
<MapView
|
<MapView
|
||||||
logoEnabled={false}
|
logoEnabled={false}
|
||||||
|
compassViewPosition={2}
|
||||||
style={styles.map}
|
style={styles.map}
|
||||||
styleURL="https://openmaptiles.geo.data.gouv.fr/styles/osm-bright/style.json">
|
styleURL="https://openmaptiles.geo.data.gouv.fr/styles/osm-bright/style.json">
|
||||||
{/* FIXME Il faudra pouvoir avoir un bouton de suivi pour activer le suivi de la caméro */}
|
{/* FIXME Il faudra pouvoir avoir un bouton de suivi pour activer le suivi de la caméro */}
|
||||||
@ -32,9 +33,9 @@ export default function Map() {
|
|||||||
function PlayerLocationsMarkers() {
|
function PlayerLocationsMarkers() {
|
||||||
const game = useGame()
|
const game = useGame()
|
||||||
const lastPlayerLocations = useLastPlayerLocations()
|
const lastPlayerLocations = useLastPlayerLocations()
|
||||||
return lastPlayerLocations
|
return lastPlayerLocations ? lastPlayerLocations
|
||||||
.filter(playerLoc => playerLoc.playerId !== game.playerId)
|
.filter(playerLoc => playerLoc.playerId !== game.playerId)
|
||||||
.map(playerLoc => <PlayerLocationMarker key={`player-${playerLoc.playerId}-loc`} playerLocation={playerLoc} />)
|
.map(playerLoc => <PlayerLocationMarker key={`player-${playerLoc.playerId}-loc`} playerLocation={playerLoc} />) : <></>
|
||||||
}
|
}
|
||||||
|
|
||||||
function PlayerLocationMarker({ playerLocation }: { playerLocation: PlayerLocation }) {
|
function PlayerLocationMarker({ playerLocation }: { playerLocation: PlayerLocation }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user