@@ -867,7 +867,7 @@ var mapInfoBox_handle_path = function(event) {
867867 value = Math . round ( value / 10 ) / 100 + " km" ;
868868 }
869869
870- mapInfoBox . setContent ( "<span> Length: " + value + "</span >" ) ;
870+ mapInfoBox . setContent ( "<pre><b> Length:</b> " + value + "</pre >" ) ;
871871 mapInfoBox . setPosition ( event . latLng ) ;
872872 mapInfoBox . open ( map ) ;
873873}
@@ -881,10 +881,12 @@ var mapInfoBox_handle_prediction = function(event) {
881881 altitude = Math . round ( data . alt ) + " m" ;
882882 }
883883
884- mapInfoBox . setContent ( "<span>" + formatDate ( new Date ( parseInt ( data . time ) * 1000 ) , true ) + "</span><br/><br/>"
885- + "<span>Altitude: " + altitude + "</span><br/>"
886- + "<span>Latitude: " + data . lat + "</span><br/>"
887- + "<span>Longtitude: " + data . lon + "</span>"
884+ mapInfoBox . setContent ( "<pre>"
885+ + formatDate ( new Date ( parseInt ( data . time ) * 1000 ) , true ) + "\n\n"
886+ + "<b>Altitude:</b> " + altitude + "\n"
887+ + "<b>Latitude:</b> " + data . lat + "\n"
888+ + "<b>Longtitude:</b> " + data . lon + "\n"
889+ + "</pre>"
888890 ) ;
889891 mapInfoBox . setPosition ( event . latLng ) ;
890892 mapInfoBox . open ( map ) ;
@@ -899,7 +901,7 @@ var mapInfoBox_handle_horizons = function(event, obj, title) {
899901 }
900902
901903
902- mapInfoBox . setContent ( "<span >" + title + "</span><br/><span>r = " + value + "</span >" ) ;
904+ mapInfoBox . setContent ( "<pre >" + title + "\nr = " + value + "</pre >" ) ;
903905 mapInfoBox . setPosition ( event . latLng ) ;
904906 mapInfoBox . open ( map ) ;
905907}
0 commit comments