(p: LocationProfile)
| 96 | const atCurrent = (p: { lat: number; lon: number }) => |
| 97 | Math.abs(p.lat - cfg.centerLat) < 1e-4 && Math.abs(p.lon - cfg.centerLon) < 1e-4; |
| 98 | const switchToProfile = (p: LocationProfile) => |
| 99 | set({ centerLat: p.lat, centerLon: p.lon, radiusMiles: p.radiusMiles, locationName: p.name }); |
| 100 | const saveCurrentProfile = () => { |
| 101 | const name = cfg.locationName?.trim() || formatLatLon(cfg.centerLat, cfg.centerLon); |
| 102 | const profile: LocationProfile = { |