diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-31 15:21:41 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-05-31 15:21:41 +1200 |
commit | cce427a783cbe0c2eca6a278d7327294002847e5 (patch) | |
tree | 33f05ebfedbfb2eb4f5cdd05dcf5bd13f3efc3b8 | |
parent | b584b73e523729f28cd294fa1c54a1198ddcea30 (diff) | |
download | traccar-server-cce427a783cbe0c2eca6a278d7327294002847e5.tar.gz traccar-server-cce427a783cbe0c2eca6a278d7327294002847e5.tar.bz2 traccar-server-cce427a783cbe0c2eca6a278d7327294002847e5.zip |
Center map on report track
-rw-r--r-- | web/app/view/MapController.js | 2 |
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) { |