fix display Issue on miniMap
* future considerations: reduce massive boilerplate code due to different tableSources
This commit is contained in:
parent
bba88ac1aa
commit
953b75d55e
@ -533,9 +533,11 @@ export class DashboardComponent implements OnInit {
|
||||
if (point.stationId === row.stationId) {
|
||||
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 {
|
||||
@ -544,9 +546,11 @@ export class DashboardComponent implements OnInit {
|
||||
if (point.stationId === row.stationId) {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user