mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
25 lines
637 B
TypeScript
25 lines
637 B
TypeScript
"use client";
|
|
|
|
import "leaflet/dist/leaflet.css";
|
|
import { MapContainer, TileLayer, Marker } from "react-leaflet";
|
|
|
|
export default function TournamentMap() {
|
|
const center: number[] = [47.0844, 2.3964];
|
|
|
|
return (
|
|
<section id="tournament-map" className="">
|
|
<MapContainer
|
|
center={center}
|
|
zoom={5}
|
|
scrollWheelZoom={false}
|
|
style={{ height: "50vh" }}
|
|
>
|
|
<TileLayer
|
|
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
|
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
/>
|
|
</MapContainer>
|
|
</section>
|
|
);
|
|
}
|