@ -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]],