import { MapContainer, CircleMarker, TileLayer, ZoomControl, Popup, } from 'react-leaflet'; import {useTheme} from '@mui/material'; import MapController from './MapController'; import MapWrapper from './MapWrapper'; import useMapStore from '../../stores/useMapStore'; import Bounds from './Bounds'; const DEV_TILES_URL = process.env.DEV_TILES_URL || 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; const Map = () => { const theme = useTheme(); const {center, markers} = useMapStore(); const defaultMarkerStyle = { radius: 12, fillColor: theme.palette.primary.main, color: theme.palette.background.paper, fillOpacity: 1, opacity: 1, weight: 3, }; return ( {markers.map(({popup, ...circleMarkerProps}, index) => ( {popup && {popup}} ))} ); }; export default Map;