aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/DistanceUnits.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:29:02 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:29:02 +1300
commitfc408a9ad93ebef686453be0d6565a5e630bf476 (patch)
tree2231d8be2f1d37f2bb87c38ccbd95be904209b0b /web/app/store/DistanceUnits.js
parentefbaeb0393df7532dd7865f0e77171209f4e9363 (diff)
downloadtrackermap-web-fc408a9ad93ebef686453be0d6565a5e630bf476.tar.gz
trackermap-web-fc408a9ad93ebef686453be0d6565a5e630bf476.tar.bz2
trackermap-web-fc408a9ad93ebef686453be0d6565a5e630bf476.zip
Add nautical mile support
Diffstat (limited to 'web/app/store/DistanceUnits.js')
-rw-r--r--web/app/store/DistanceUnits.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/app/store/DistanceUnits.js b/web/app/store/DistanceUnits.js
index df0bb472..276da0e7 100644
--- a/web/app/store/DistanceUnits.js
+++ b/web/app/store/DistanceUnits.js
@@ -27,6 +27,10 @@ Ext.define('Traccar.store.DistanceUnits', {
key: 'mi',
name: Strings.sharedMi,
factor: 0.000621371
+ }, {
+ key: 'nmi',
+ name: Strings.sharedNmi,
+ factor: 0.000539957
}],
formatValue: function (value, unit) {