We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed273f2 commit 6227422Copy full SHA for 6227422
js/tracker.js
@@ -146,7 +146,9 @@ function update_lookangles(idx) {
146
$("#lookanglesbox .azimuth").text("Azimuth: " + Math.round(look.azimuth * 10000)/10000 + "°");
147
$("#lookanglesbox .bearing").text(look.bearing);
148
$("#lookanglesbox .elevation").text("Elevation: " + Math.round(look.elevation * 10000)/10000 + "°");
149
- $("#lookanglesbox .range").text(Math.round(look.range/1000) + " km");
+
150
+ var range_string = (look.range < 10000) ? Math.round(look.range) + "m" : Math.round(look.range/1000) + " km";
151
+ $("#lookanglesbox .range").text(range_string);
152
153
}
154
0 commit comments