Files
Web-Frontend/client/src/components/Canvas/views/GlobalMap.jsx
T

19 lines
653 B
React
Raw Normal View History

2025-07-30 11:16:21 -07:00
import React from "react";
import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";
export default function GlobalMapCanvas() {
2025-07-31 08:56:32 -07:00
const position = [45.61142478054226, -122.49630033167544]; // [latitude, longitude]
2025-07-30 11:16:21 -07:00
return (
<MapContainer center={position} zoom={3} style={{ height: "100%", width: "100%" }}>
2025-07-31 08:56:32 -07:00
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='&copy; OpenStreetMap contributors'
/>
<Marker position={position}>
<Popup>
CVO Home of the volcanoligists
</Popup>
</Marker>
</MapContainer>
2025-07-30 11:16:21 -07:00
);
}