aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/MapController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-18 22:15:32 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-18 22:15:32 -0700
commitb69eb1d72ce706d4e76014daa19b3720ee633feb (patch)
treec56a3daf365199aecf824289aadd3d566c71c530 /web/app/view/map/MapController.js
parentedb24a1bd6649e672bf142b9b873b47dec31f0e3 (diff)
downloadetbsa-traccar-web-b69eb1d72ce706d4e76014daa19b3720ee633feb.tar.gz
etbsa-traccar-web-b69eb1d72ce706d4e76014daa19b3720ee633feb.tar.bz2
etbsa-traccar-web-b69eb1d72ce706d4e76014daa19b3720ee633feb.zip
Add accuracy button
Diffstat (limited to 'web/app/view/map/MapController.js')
-rw-r--r--web/app/view/map/MapController.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index 7ba0ee3..d025b58 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -68,6 +68,10 @@ Ext.define('Traccar.view.map.MapController', {
this.getView().getLiveRouteLayer().setVisible(button.pressed);
},
+ showAccuracy: function (button) {
+ this.getView().getAccuracyLayer().setVisible(button.pressed);
+ },
+
getMapState: function () {
var zoom, center, projection;
projection = this.getView().getMapView().getProjection();