Browse Source

fix: Log without locked GPS would fly the map to 0,0

master
Konstantinos Kamaropoulos 5 years ago
parent
commit
0ce3df5fdd
  1. 2
      src/app/map/map.component.ts

2
src/app/map/map.component.ts

@ -83,8 +83,8 @@ export class MapComponent implements OnInit {
.setLngLat([log['gps_data']['longitude'], log['gps_data']['latitude']]) .setLngLat([log['gps_data']['longitude'], log['gps_data']['latitude']])
.setPopup(popup) .setPopup(popup)
.addTo(this.map); .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) { if (newPointsCount) {
this.map.flyTo({ this.map.flyTo({

Loading…
Cancel
Save