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,9 +83,9 @@ 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']];
}
}
if (newPointsCount) {
this.map.flyTo({
center: [this.lastPoint[0], this.lastPoint[1]],

Loading…
Cancel
Save