{/* Auto-zoom toggle: on = frame QTH→DX each QSO; off = free pan/zoom
(remembered across restarts), so the beam heading stays visible. */}
{path && (
Dist {Math.round(path.distanceShort).toLocaleString()} km
· LP {Math.round(path.distanceLong).toLocaleString()} km
Az SP {Math.round(path.bearingShort)}°
· LP {Math.round(path.bearingLong)}°
)}
);
}
interface LocatorProps {
toGrid: string; // contacted-station grid
toLabel?: string; // DX callsign
}
// LocatorMap — street map zoomed onto the DX grid, the "map2" pane.
export function LocatorMap({ toGrid, toLabel }: LocatorProps) {
const locatorRef = useRef