Skip to content

Commit 7cfb4e7

Browse files
committed
Use format_coordinates everywhere
1 parent b2941f6 commit 7cfb4e7

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
@@ -2706,7 +2706,7 @@ function mapInfoBox_handle_path_old(vehicle, id) {
27062706
html = "<div style='line-height:16px;position:relative;'>";
27072707
html += "<div>"+data.serial+" <span style=''>("+data.datetime+")</span></div>";
27082708
html += "<hr style='margin:5px 0px'>";
2709-
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+roundNumber(data.lat, 5) + ',&nbsp;' + roundNumber(data.lon, 5)+"</div>";
2709+
html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i>&nbsp;</b>"+format_coordinates(data.lat, data.lon, data.serial)+"</div>";
27102710

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

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

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

47494749
html += "<div style='line-height:16px;position:relative;'>";
47504750
html += "<div><b><u>"+r[i].serial+(r[i].recovered ? " Recovered by " : " Not Recovered by ")+r[i].recovered_by+"</u></b></div>";
4751-
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>";
4751+
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>";
47524752

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

0 commit comments

Comments
 (0)