|
@ -26,6 +26,9 @@ export class MapComponent implements OnInit { |
|
|
|
|
|
|
|
|
lastPoint: number[]; |
|
|
lastPoint: number[]; |
|
|
|
|
|
|
|
|
|
|
|
ommitedPoints: Number; |
|
|
|
|
|
displayedPoints: Number; |
|
|
|
|
|
|
|
|
constructor(private logsService: LogsService) {} |
|
|
constructor(private logsService: LogsService) {} |
|
|
|
|
|
|
|
|
async ngOnInit() { |
|
|
async ngOnInit() { |
|
@ -47,6 +50,11 @@ export class MapComponent implements OnInit { |
|
|
if (firstRun) { |
|
|
if (firstRun) { |
|
|
data = await this.logsService.getLogsFirstRun(); |
|
|
data = await this.logsService.getLogsFirstRun(); |
|
|
firstRun = false; |
|
|
firstRun = false; |
|
|
|
|
|
if (data.length > 100) { |
|
|
|
|
|
this.ommitedPoints = data.length; |
|
|
|
|
|
data = data.slice(data.length - 100, data.length); |
|
|
|
|
|
} |
|
|
|
|
|
this.displayedPoints = data.length; |
|
|
} else { |
|
|
} else { |
|
|
data = await this.logsService.getUpdates(); |
|
|
data = await this.logsService.getUpdates(); |
|
|
} |
|
|
} |
|
|