feat: 删除不需要的组件

This commit is contained in:
zdl
2025-11-07 14:31:50 +08:00
parent 3c060b7aa5
commit c10af30ad4
3 changed files with 0 additions and 36 deletions

View File

@@ -1,3 +0,0 @@
.leaflet-container {
height: 300px;
}

View File

@@ -1,28 +0,0 @@
import { MapContainer, TileLayer, } from 'react-leaflet';
import "./Map.css";
function MapPlaceholder() {
return (
<p>
Map of London.{' '}
<noscript>You need to enable JavaScript to see this map.</noscript>
</p>
)
}
function Map() {
return (
<MapContainer
center={[51.505, -0.09]}
zoom={13}
scrollWheelZoom={true}
placeholder={<MapPlaceholder />}>
<TileLayer
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
</MapContainer>
)
}
export default Map;