20 lines
624 B
JavaScript
20 lines
624 B
JavaScript
|
import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet'
|
||
|
|
||
|
export default function Map() {
|
||
|
return (
|
||
|
<div className="map-container">
|
||
|
<MapContainer center={[51.505, -0.09]} zoom={13} scrollWheelZoom={false}>
|
||
|
<TileLayer
|
||
|
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
||
|
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||
|
/>
|
||
|
<Marker position={[51.505, -0.09]}>
|
||
|
<Popup>
|
||
|
A pretty CSS3 popup. <br /> Easily customizable.
|
||
|
</Popup>
|
||
|
</Marker>
|
||
|
</MapContainer>
|
||
|
</div>
|
||
|
)
|
||
|
}
|