Skip to content

Commit 56843e2

Browse files
Mark JessopMark Jessop
authored andcommitted
Add geo link to burst/landing locations
1 parent 57b9fa3 commit 56843e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/tracker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,8 +2207,7 @@ function mapInfoBox_handle_prediction(event) {
22072207
mapInfoBox.setContent("<pre>" +
22082208
formatDate(new Date(parseInt(data.time) * 1000), true) + "\n\n" +
22092209
"<b>Altitude:</b> " + altitude + "\n" +
2210-
"<b>Latitude:</b> " + data.lat + "\n" +
2211-
"<b>Longitude:</b> " + data.lon + "\n" +
2210+
"<b>Location:</b> <a href='geo:" + data.lat.toFixed(5) + "," + data.lon.toFixed(5) + "'>" + data.lat.toFixed(5) + ", " + data.lon.toFixed(5) + "</a>\n" +
22122211
event.target.pred_type +
22132212
"</pre>"
22142213
);

0 commit comments

Comments
 (0)