From 56c8c902100754b5cb1ccbab506ad9687ff46686 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sat, 26 Dec 2020 23:23:22 +0100 Subject: [PATCH] Speed, altitude checkbox not re-enabled after latest position (fixes #148) --- js/src/mapviewmodel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/mapviewmodel.js b/js/src/mapviewmodel.js index 1a7e74c..6cd7b8a 100644 --- a/js/src/mapviewmodel.js +++ b/js/src/mapviewmodel.js @@ -158,6 +158,7 @@ export default class MapViewModel extends ViewModel { uObserve.observe(track, 'positions', () => { this.displayTrack(track, false); this.api.zoomToExtent(); + this.toggleStyleOptions(); }); this.displayTrack(track, true); }