@@ -871,14 +871,14 @@ function updateVehicleInfo(vcallsign, newPosition) {
871871 // determine how to link the vehicle coordinates to a native app, if on a mobile device
872872 if ( ua . indexOf ( 'iphone' ) > - 1 ) {
873873 coords_text = '<a id="launch_mapapp" href="maps://?q=' + newPosition . gps_lat + ',' + newPosition . gps_lon + '">' +
874- roundNumber ( newPosition . gps_lat , 6 ) + ', ' + roundNumber ( newPosition . gps_lon , 6 ) + '</a>' +
874+ roundNumber ( newPosition . gps_lat , 5 ) + ', ' + roundNumber ( newPosition . gps_lon , 5 ) + '</a>' +
875875 ' <i class="icon-location"></i>' ;
876876 } else if ( ua . indexOf ( 'android' ) > - 1 ) {
877877 coords_text = '<a id="launch_mapapp" href="geo:' + newPosition . gps_lat + ',' + newPosition . gps_lon + '?q=' + newPosition . gps_lat + ',' + newPosition . gps_lon + '(' + vcallsign + ')">' +
878- roundNumber ( newPosition . gps_lat , 6 ) + ', ' + roundNumber ( newPosition . gps_lon , 6 ) + '</a>' +
878+ roundNumber ( newPosition . gps_lat , 5 ) + ', ' + roundNumber ( newPosition . gps_lon , 5 ) + '</a>' +
879879 ' <i class="icon-location"></i>' ;
880880 } else {
881- coords_text = roundNumber ( newPosition . gps_lat , 6 ) + ', ' + roundNumber ( newPosition . gps_lon , 6 ) ;
881+ coords_text = roundNumber ( newPosition . gps_lat , 5 ) + ', ' + roundNumber ( newPosition . gps_lon , 5 ) ;
882882 }
883883
884884 // format altitude strings
@@ -1244,7 +1244,7 @@ var mapInfoBox_handle_path_fetch = function(id,vehicle) {
12441244 " src='" + vehicle . image_src + "' />" ;
12451245 html += "<div>" + data . vehicle + "<span style='position:absolute;right:0px;'>(" + data . position_id + ")</span></div>" ;
12461246 html += "<hr style='margin:5px 0px'>" ;
1247- html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + roundNumber ( data . gps_lat , 6 ) + ', ' + roundNumber ( data . gps_lon , 6 ) + "</div>" ;
1247+ html += "<div style='margin-bottom:5px;'><b><i class='icon-location'></i> </b>" + roundNumber ( data . gps_lat , 5 ) + ', ' + roundNumber ( data . gps_lon , 5 ) + "</div>" ;
12481248
12491249 var imp = offline . get ( 'opt_imperial' ) ;
12501250 var text_alt = Number ( ( imp ) ? Math . floor ( 3.2808399 * parseInt ( data . gps_alt ) ) : parseInt ( data . gps_alt ) ) . toLocaleString ( "us" ) ;
0 commit comments