import { MapContainer, TileLayer, CircleMarker, useMap } from 'react-leaflet' import { useEffect } from 'react' import type L from 'leaflet' import { getTileUrl } from './types' import type { MovingPointInfo } from './types' function UpdateCenter({ latlng }: { latlng: L.LatLng }) { const map = useMap() useEffect(() => { map.setView(latlng) }, [latlng, map]) return null } interface Props { pointPosition: MovingPointInfo } export default function MiniMap({ pointPosition }: Props) { return (
) }