Skip to content

Commit 8ff021b

Browse files
tweaks to infobox
1 parent da51b11 commit 8ff021b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

js/tracker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -837,26 +837,26 @@ var mapInfoBox_handle_path = function(event) {
837837
var value = "";
838838

839839
if(offline.get('opt_imperial')) {
840-
value = Math.round(this.vehicle.path_length*0.000621371192) + " miles";
840+
value = Math.round(this.vehicle.path_length*0.000621371192) + "miles";
841841
} else {
842-
value = Math.round(this.vehicle.path_length/10)/100 + " km";
842+
value = Math.round(this.vehicle.path_length/10)/100 + "km";
843843
}
844844

845-
mapInfoBox.setContent("Ground length: " + value);
845+
mapInfoBox.setContent("Length: " + value);
846846
mapInfoBox.setPosition(event.latLng);
847847
mapInfoBox.open(map);
848848
}
849849
var mapInfoBox_handle_horizons = function(event, obj, title) {
850850
var value = "";
851851

852852
if(offline.get('opt_imperial')) {
853-
value = Math.round(obj.getRadius()*0.000621371192) + " miles";
853+
value = Math.round(obj.getRadius()*0.000621371192) + "miles";
854854
} else {
855-
value = Math.round(obj.getRadius()/10)/100 + " km";
855+
value = Math.round(obj.getRadius()/10)/100 + "km";
856856
}
857857

858858

859-
mapInfoBox.setContent(title + "<br/>Radius: "+ value);
859+
mapInfoBox.setContent(title + "<br/>r = "+ value);
860860
mapInfoBox.setPosition(event.latLng);
861861
mapInfoBox.open(map);
862862
}

0 commit comments

Comments
 (0)