mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
Fix carte qui ne charge pas quand on a pas la position
This commit is contained in:
@@ -84,7 +84,7 @@ export function LiveMap({ ...props }) {
|
|||||||
export function PlacementMap({ ...props }) {
|
export function PlacementMap({ ...props }) {
|
||||||
const { currentPosition, startingArea } = useGame();
|
const { currentPosition, startingArea } = useGame();
|
||||||
return (
|
return (
|
||||||
<MapContainer {...props} className='min-h-full w-full z-0' scrollWheelZoom={true}>
|
<MapContainer {...props} className='min-h-full w-full z-0' center={[0, 0]} zoom={0} scrollWheelZoom={true}>
|
||||||
<TileLayer
|
<TileLayer
|
||||||
attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||||
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user