@@ -90,6 +90,13 @@ export default function FirePopup({ isOpen, feature }: Props) {
90
90
return { amount : `${ days } ` , unit : 'd' } ; // 24 hours or more
91
91
} , [ feature . properties . eventDate ] ) ;
92
92
93
+ const alertCoordinates = useMemo ( ( ) => {
94
+ const [ lng , lat ] = feature . geometry . coordinates ;
95
+ const latString = lat >= 0 ? `${ Math . abs ( lat ) } °N` : `${ Math . abs ( lat ) } °S` ;
96
+ const lngString = lng >= 0 ? `${ Math . abs ( lng ) } °E` : `${ Math . abs ( lng ) } °W` ;
97
+ return `${ latString } , ${ lngString } ` ;
98
+ } , [ feature . geometry . coordinates ] ) ;
99
+
93
100
const alertConfidence = useMemo ( ( ) => {
94
101
const confidenceMap : Record < string , string > = {
95
102
high : 'highAlertConfidenceText' ,
@@ -155,10 +162,7 @@ export default function FirePopup({ isOpen, feature }: Props) {
155
162
</ p >
156
163
</ header >
157
164
< div className = { styles . popupText } >
158
- < p className = { styles . coordinates } >
159
- { feature . geometry . coordinates [ 0 ] } ,{ ' ' }
160
- { feature . geometry . coordinates [ 1 ] }
161
- </ p >
165
+ < p className = { styles . coordinates } > { alertCoordinates } </ p >
162
166
< p >
163
167
{ tProjectDetails . rich ( alertConfidence , {
164
168
important : ( chunks ) => < span > { chunks } </ span > ,
0 commit comments