(iso: string)
| 45 | ] |
| 46 | |
| 47 | function formattedTime(iso: string): string { |
| 48 | return new Intl.DateTimeFormat(undefined, { |
| 49 | hour: 'numeric', |
| 50 | minute: '2-digit', |
| 51 | second: '2-digit', |
| 52 | }).format(new Date(iso)) |
| 53 | } |
| 54 | |
| 55 | function projectPoint(lat: number, lon: number) { |
| 56 | const lambda = (lon * Math.PI) / 180 |