aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-05-31 15:21:41 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-05-31 15:21:41 +1200
commitcce427a783cbe0c2eca6a278d7327294002847e5 (patch)
tree33f05ebfedbfb2eb4f5cdd05dcf5bd13f3efc3b8 /web/app/view
parentb584b73e523729f28cd294fa1c54a1198ddcea30 (diff)
downloadtraccar-server-cce427a783cbe0c2eca6a278d7327294002847e5.tar.gz
traccar-server-cce427a783cbe0c2eca6a278d7327294002847e5.tar.bz2
traccar-server-cce427a783cbe0c2eca6a278d7327294002847e5.zip
Center map on report track
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/MapController.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index b8b7290b8..eee74099f 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -176,6 +176,8 @@ Ext.define('Traccar.view.MapController', {
this.reportRoute.getGeometry().appendCoordinate(point);
}
+
+ this.getView().getMapView().fit(this.reportRoute.getGeometry(), this.getView().getMap().getSize());
},
clearReport: function (store) {