From 0ce3df5fdd6a0cbca51a8da4e9a43c3c72c86ed6 Mon Sep 17 00:00:00 2001 From: Konstantinos Kamaropoulos Date: Mon, 2 Mar 2020 20:36:50 +0200 Subject: [PATCH] fix: Log without locked GPS would fly the map to 0,0 --- src/app/map/map.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/map/map.component.ts b/src/app/map/map.component.ts index 53bb5fd..f467a61 100644 --- a/src/app/map/map.component.ts +++ b/src/app/map/map.component.ts @@ -83,8 +83,8 @@ export class MapComponent implements OnInit { .setLngLat([log['gps_data']['longitude'], log['gps_data']['latitude']]) .setPopup(popup) .addTo(this.map); + this.lastPoint = [log['gps_data']['longitude'], log['gps_data']['latitude']]; } - this.lastPoint = [log['gps_data']['longitude'], log['gps_data']['latitude']]; } if (newPointsCount) { this.map.flyTo({