fix display Issue on miniMap

* future considerations: reduce massive boilerplate code due to different tableSources
This commit is contained in:
tim-herbst 2020-12-29 14:48:19 +01:00
parent bba88ac1aa
commit 953b75d55e

View File

@ -533,9 +533,11 @@ export class DashboardComponent implements OnInit {
if (point.stationId === row.stationId) { if (point.stationId === row.stationId) {
point.color = this.getColorTo(row); point.color = this.getColorTo(row);
} }
this.bikePointWithColor.push(point);
}); });
this.map.drawTableStationMarker(this.bikePointWithColor); const markerToDisplay = [];
markerToDisplay.push(...this.selectionTo.selected);
markerToDisplay.push(...this.selectionFrom.selected);
this.map.drawTableStationMarker(markerToDisplay);
} }
selectRowFrom(selection: MatCheckboxChange, row): void { selectRowFrom(selection: MatCheckboxChange, row): void {
@ -544,9 +546,11 @@ export class DashboardComponent implements OnInit {
if (point.stationId === row.stationId) { if (point.stationId === row.stationId) {
point.color = this.getColorFrom(row); point.color = this.getColorFrom(row);
} }
this.bikePointWithColor.push(point);
}); });
this.map.drawTableStationMarker(this.bikePointWithColor); const markerToDisplay = [];
markerToDisplay.push(...this.selectionFrom.selected);
markerToDisplay.push(...this.selectionTo.selected);
this.map.drawTableStationMarker(markerToDisplay);
} }
getColorTo(value): string { getColorTo(value): string {