diff options
Diffstat (limited to 'web/app')
-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 |
3 files changed, 5 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, |