@@ -2706,7 +2706,7 @@ function mapInfoBox_handle_path_old(vehicle, id) {
2706
2706
html = "<div style='line-height:16px;position:relative;'>" ;
2707
2707
html += "<div>" + data . serial + " <span style=''>(" + data . datetime + ")</span></div>" ;
2708
2708
html += "<hr style='margin:5px 0px'>" ;
2709
- html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + roundNumber ( data . lat , 5 ) + ', ' + roundNumber ( data . lon , 5 ) + "</div>" ;
2709
+ html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + format_coordinates ( data . lat , data . lon , data . serial ) + "</div>" ;
2710
2710
2711
2711
var imp = offline . get ( 'opt_imperial' ) ;
2712
2712
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) {
2781
2781
html = "<div style='line-height:16px;position:relative;'>" ;
2782
2782
html += "<div>" + data . serial + " <span style=''>(" + date + ")</span></div>" ;
2783
2783
html += "<hr style='margin:5px 0px'>" ;
2784
- html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + roundNumber ( data . lat , 5 ) + ', ' + roundNumber ( data . lon , 5 ) + "</div>" ;
2784
+ html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + format_coordinates ( data . lat , data . lon , data . serial ) + "</div>" ;
2785
2785
2786
2786
var imp = offline . get ( 'opt_imperial' ) ;
2787
2787
var text_alt = Number ( ( imp ) ? Math . floor ( 3.2808399 * parseInt ( data . alt ) ) : parseInt ( data . alt ) ) . toLocaleString ( "us" ) ;
@@ -4636,7 +4636,7 @@ function updateRecoveryMarker(recovery) {
4636
4636
html = "<div style='line-height:16px;position:relative;'>" ;
4637
4637
html += "<div><b>" + recovery . serial + ( recovery . recovered ? " Recovered" : " Not Recovered" ) + "</b></div>" ;
4638
4638
html += "<hr style='margin:5px 0px'>" ;
4639
- html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + roundNumber ( recovery . lat , 5 ) + ', ' + roundNumber ( recovery . lon , 5 ) + "</div>" ;
4639
+ html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + format_coordinates ( recovery . lat , recovery . lon , recovery . serial ) + "</div>" ;
4640
4640
4641
4641
var imp = offline . get ( 'opt_imperial' ) ;
4642
4642
var text_alt = Number ( ( imp ) ? Math . floor ( 3.2808399 * parseInt ( recovery . alt ) ) : parseInt ( recovery . alt ) ) . toLocaleString ( "us" ) ;
@@ -4748,7 +4748,7 @@ function updateRecoveryPane(r){
4748
4748
4749
4749
html += "<div style='line-height:16px;position:relative;'>" ;
4750
4750
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> </b>" + roundNumber ( lat , 5 ) + ', ' + 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> </b>" + format_coordinates ( lat , lon , r [ i ] . serial ) + "</div>" ;
4752
4752
4753
4753
var imp = offline . get ( 'opt_imperial' ) ;
4754
4754
var text_alt = Number ( ( imp ) ? Math . floor ( 3.2808399 * parseInt ( alt ) ) : parseInt ( alt ) ) . toLocaleString ( "us" ) ;
0 commit comments