aboutsummaryrefslogtreecommitdiff
path: root/web/app/AttributeFormatter.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-15 10:08:38 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-15 10:09:04 +1300
commit08862079e544f2d501427fbb523ef28fc45fce75 (patch)
tree3c0fede85bd5a91dec90064019df112339af6aa5 /web/app/AttributeFormatter.js
parent122947ed42ca4a427f9d2375e91433bf33ae3d77 (diff)
downloadtrackermap-server-08862079e544f2d501427fbb523ef28fc45fce75.tar.gz
trackermap-server-08862079e544f2d501427fbb523ef28fc45fce75.tar.bz2
trackermap-server-08862079e544f2d501427fbb523ef28fc45fce75.zip
Fix map center coords precision
Diffstat (limited to 'web/app/AttributeFormatter.js')
-rw-r--r--web/app/AttributeFormatter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js
index 44cc7d5a8..1cbc1cfc0 100644
--- a/web/app/AttributeFormatter.js
+++ b/web/app/AttributeFormatter.js
@@ -18,7 +18,7 @@ Ext.define('Traccar.AttributeFormatter', {
singleton: true,
coordinateFormatter: function (value) {
- return value.toFixed(6);
+ return value.toFixed(Traccar.Style.coordinatePrecision);
},
speedFormatter: function (value) {
@@ -36,7 +36,7 @@ Ext.define('Traccar.AttributeFormatter', {
defaultFormatter: function (value) {
if (typeof value === 'number') {
- return Number(value.toFixed(2));
+ return Number(value.toFixed(Traccar.Style.numberPrecision));
} else if (typeof value === 'boolean') {
return value ? Ext.Msg.buttonText.yes : Ext.Msg.buttonText.no;
} else if (value instanceof Date) {