Skip to content

Commit 6332ce2

Browse files
committed
Use format_coordinates everywhere
1 parent 5c986b1 commit 6332ce2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

js/station.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function drawHistorical (data, station) {
179179
html = "<div style='line-height:16px;position:relative;'>";
180180
html += "<div>"+serial+" <span style=''>("+time+")</span></div>";
181181
html += "<hr style='margin:5px 0px'>";
182-
html += "<div><b>Last Position:&nbsp;</b>"+roundNumber(landing.lat, 5) + ',&nbsp;' + roundNumber(landing.lon, 5)+"</div>";
182+
html += "<div><b>Last Position:&nbsp;</b>"+format_coordinates(landing.lat, landing.lon, serial)+"</div>";
183183

184184
var imp = offline.get('opt_imperial');
185185
var text_alt = Number((imp) ? Math.floor(3.2808399 * parseInt(landing.alt)) : parseInt(landing.alt)).toLocaleString("us");

js/tracker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ function mapInfoBox_handle_path_old(vehicle, id) {
26682668
html = "<div style='line-height:16px;position:relative;'>";
26692669
html += "<div>"+data.serial+" <span style=''>("+data.datetime+")</span></div>";
26702670
html += "<hr style='margin:5px 0px'>";
2671-
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+roundNumber(data.lat, 5) + ',&nbsp;' + roundNumber(data.lon, 5)+"</div>";
2671+
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+format_coordinates(data.lat, data.lon, data.serial)+"</div>";
26722672

26732673
var imp = offline.get('opt_imperial');
26742674
var text_alt = Number((imp) ? Math.floor(3.2808399 * parseInt(data.alt)) : parseInt(data.alt)).toLocaleString("us");
@@ -2743,7 +2743,7 @@ function mapInfoBox_handle_path_new(data, vehicle, date) {
27432743
html = "<div style='line-height:16px;position:relative;'>";
27442744
html += "<div>"+data.serial+" <span style=''>("+date+")</span></div>";
27452745
html += "<hr style='margin:5px 0px'>";
2746-
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+roundNumber(data.lat, 5) + ',&nbsp;' + roundNumber(data.lon, 5)+"</div>";
2746+
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+format_coordinates(data.lat, data.lon, data.serial)+"</div>";
27472747

27482748
var imp = offline.get('opt_imperial');
27492749
var text_alt = Number((imp) ? Math.floor(3.2808399 * parseInt(data.alt)) : parseInt(data.alt)).toLocaleString("us");
@@ -4611,7 +4611,7 @@ function updateRecoveryMarker(recovery) {
46114611
html = "<div style='line-height:16px;position:relative;'>";
46124612
html += "<div><b>"+recovery.serial+(recovery.recovered ? " Recovered" : " Not Recovered")+"</b></div>";
46134613
html += "<hr style='margin:5px 0px'>";
4614-
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+roundNumber(recovery.lat, 5) + ',&nbsp;' + roundNumber(recovery.lon, 5)+"</div>";
4614+
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+format_coordinates(recovery.lat, recovery.lon, recovery.serial)+"</div>";
46154615

46164616
var imp = offline.get('opt_imperial');
46174617
var text_alt = Number((imp) ? Math.floor(3.2808399 * parseInt(recovery.alt)) : parseInt(recovery.alt)).toLocaleString("us");
@@ -4723,7 +4723,7 @@ function updateRecoveryPane(r){
47234723

47244724
html += "<div style='line-height:16px;position:relative;'>";
47254725
html += "<div><b><u>"+r[i].serial+(r[i].recovered ? " Recovered by " : " Not Recovered by ")+r[i].recovered_by+"</u></b></div>";
4726-
html += "<div style='margin-bottom:5px;'><b><button style='margin-bottom:0px;' onclick='panToRecovery(\"" + r[i].serial + "\")'><i class='icon-location'></i></button>&nbsp;</b>"+roundNumber(lat, 5) + ',&nbsp;' + roundNumber(lon, 5)+"</div>";
4726+
html += "<div style='margin-bottom:5px;'><b><button style='margin-bottom:0px;' onclick='panToRecovery(\"" + r[i].serial + "\")'><i class='icon-location'></i></button>&nbsp;</b>"+format_coordinates(lat, lon, r[i].serial)+"</div>";
47274727

47284728
var imp = offline.get('opt_imperial');
47294729
var text_alt = Number((imp) ? Math.floor(3.2808399 * parseInt(alt)) : parseInt(alt)).toLocaleString("us");

0 commit comments

Comments
 (0)