aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/map')
-rw-r--r--web/app/view/map/MapController.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index a0f167ec3..9e009218e 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -33,13 +33,16 @@ Ext.define('Traccar.view.map.MapController', {
init: function() {
this.liveData = {};
- this.update();
+ this.update(true);
},
- update: function() {
+ update: function(first) {
Ext.Ajax.request({
scope: this,
url: '/api/async',
+ params: {
+ first: first
+ },
success: function(response) {
var data = Ext.decode(response.responseText).data;
@@ -63,7 +66,7 @@ Ext.define('Traccar.view.map.MapController', {
}
}
- this.update();
+ this.update(false);
},
failure: function() {
// TODO: error