import { MapContainer, TileLayer, LayersControl } from "react-leaflet"; import { baseLayers } from "./layers.ts"; import "leaflet/dist/leaflet.css"; export interface MapViewProps { center?: [number, number]; zoom?: number; className?: string; children?: React.ReactNode; } export function MapView({ center = [50.1, 10.0], zoom = 6, className = "h-full w-full", children, }: MapViewProps) { return ( {baseLayers.map((layer, i) => ( ))} {children} ); }