From b69eb1d72ce706d4e76014daa19b3720ee633feb Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 18 Sep 2021 22:15:32 -0700 Subject: Add accuracy button --- web/app/view/map/MapController.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/app/view/map/MapController.js') diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index 7ba0ee3b..d025b586 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(); -- cgit v1.2.3