diff --git a/apps/skyspy/skyspy.app.js b/apps/skyspy/skyspy.app.js index ae1109fe8..7cfa5145a 100644 --- a/apps/skyspy/skyspy.app.js +++ b/apps/skyspy/skyspy.app.js @@ -46,7 +46,19 @@ let fmt = { return "bad mode?"; }, fmtPos: function(pos) { - return this.fmtAngle(pos.lat) + "\n" + this.fmtAngle(pos.lon); + let x = pos.lat; + let c = "N"; + if (x<0) { + c = "S"; + x = -x; + } + let s = c+this.fmtAngle(pos.lat) + "\n"; + c = "E"; + if (x<0) { + c = "W"; + x = -x; + } + return s + c + this.fmtAngle(pos.lon); }, };