diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 12:03:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 12:03:47 +1300 |
commit | dc2ceba479c50d34a3d4c305edaf938a2df391a9 (patch) | |
tree | 7dbe58fbd356ac1b8fdd098eef9e404aa36786a8 | |
parent | a4b38c4e95fa5aa7533db945ea2f8200102a4ff4 (diff) | |
download | trackermap-web-dc2ceba479c50d34a3d4c305edaf938a2df391a9.tar.gz trackermap-web-dc2ceba479c50d34a3d4c305edaf938a2df391a9.tar.bz2 trackermap-web-dc2ceba479c50d34a3d4c305edaf938a2df391a9.zip |
Show accuracy in the web interface
-rw-r--r-- | web/app/AttributeFormatter.js | 2 | ||||
-rw-r--r-- | web/app/model/Position.js | 3 | ||||
-rw-r--r-- | web/app/view/StateController.js | 2 | ||||
-rw-r--r-- | web/l10n/en.json | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js index d3c2812f..2142465c 100644 --- a/web/app/AttributeFormatter.js +++ b/web/app/AttributeFormatter.js @@ -76,7 +76,7 @@ Ext.define('Traccar.AttributeFormatter', { return this.speedFormatter; } else if (key === 'course') { return this.courseFormatter; - } else if (key === 'distance' || key === 'odometer' || key === 'totalDistance') { + } else if (key === 'distance' || key === 'odometer' || key === 'totalDistance' || key === 'accuracy') { return this.distanceFormatter; } else if (key === 'hours') { return this.hoursFormatter; diff --git a/web/app/model/Position.js b/web/app/model/Position.js index 362ca589..3b85a1b7 100644 --- a/web/app/model/Position.js +++ b/web/app/model/Position.js @@ -44,6 +44,9 @@ Ext.define('Traccar.model.Position', { name: 'valid', type: 'boolean' }, { + name: 'accuracy', + type: 'float' + }, { name: 'latitude', type: 'float' }, { diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index bef54d27..f9be1135 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -61,7 +61,7 @@ Ext.define('Traccar.view.StateController', { keys: (function () { var i, list, result; result = {}; - list = ['fixTime', 'latitude', 'longitude', 'valid', 'altitude', 'speed', 'course', 'address', 'protocol']; + list = ['fixTime', 'latitude', 'longitude', 'valid', 'accuracy', 'altitude', 'speed', 'course', 'address', 'protocol']; for (i = 0; i < list.length; i++) { result[list[i]] = { priority: i, diff --git a/web/l10n/en.json b/web/l10n/en.json index c760ea24..e7b05740 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -97,6 +97,7 @@ "reportClear": "Clear", "positionFixTime": "Time", "positionValid": "Valid", + "positionAccuracy": "Accuracy", "positionLatitude": "Latitude", "positionLongitude": "Longitude", "positionAltitude": "Altitude", |