Can someone help me create an OpenStreetMap with these script?
RuloFern님이 English로 2025년 2월 11일에 게시함.npm install leaflet react-leaflet @types/leaflet import ‘leaflet/dist/leaflet.css’; import { MapContainer, TileLayer, GeoJSON } from ‘react-leaflet’;
<MapContainer center={[39.8283, -98.5795]} zoom={4} style={{ height: ‘400px’, width: ‘100%’ }} >
<GeoJSON data={stateGeoJSON} style={stateStyle} onEachFeature={onEachFeature} /> </MapContainer>
토론
2025년 2월 12일 01:50에 SomeoneElse님의 의견
Perhaps this web page might help?