aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-02 11:56:45 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-02 11:56:45 -0700
commit8f3b27e86ac9b9a94bdd5319501ecb7e056ec595 (patch)
treedec346ed1a29a6a29091af05ceef5947281a84c0
parentedc2e1ceb998f4d5abb9ef61785e1a6009b11ed1 (diff)
downloadtrackermap-web-8f3b27e86ac9b9a94bdd5319501ecb7e056ec595.tar.gz
trackermap-web-8f3b27e86ac9b9a94bdd5319501ecb7e056ec595.tar.bz2
trackermap-web-8f3b27e86ac9b9a94bdd5319501ecb7e056ec595.zip
Fix course values
-rw-r--r--modern/src/common/util/formatter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index fadc7788..034b0401 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -17,7 +17,7 @@ export const formatAlarm = (value, t) => (value ? t(prefixString('alarm', value)
export const formatCourse = (value) => {
const courseValues = ['\u2191', '\u2197', '\u2192', '\u2198', '\u2193', '\u2199', '\u2190', '\u2196'];
- let normalizedValue = value % 360;
+ let normalizedValue = (value + 45 / 2) % 360;
if (normalizedValue < 0) {
normalizedValue += 360;
}