Commit c9c0f4650ddcbfe49ae4f9e999195b31513f9920
1 parent
448fb2fd
update position on change min time
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -103,7 +103,7 @@ export class TripAnimationComponent implements OnInit, AfterViewInit { | @@ -103,7 +103,7 @@ export class TripAnimationComponent implements OnInit, AfterViewInit { | ||
103 | this.historicalData = parseArray(this.ctx.data).filter(arr => arr.length); | 103 | this.historicalData = parseArray(this.ctx.data).filter(arr => arr.length); |
104 | if (this.historicalData.length) { | 104 | if (this.historicalData.length) { |
105 | this.calculateIntervals(); | 105 | this.calculateIntervals(); |
106 | - this.timeUpdated(this.currentTime ? this.currentTime : this.minTime); | 106 | + this.timeUpdated(this.currentTime && this.currentTime > this.minTime ? this.currentTime : this.minTime); |
107 | } | 107 | } |
108 | this.mapWidget.map.map?.invalidateSize(); | 108 | this.mapWidget.map.map?.invalidateSize(); |
109 | this.cd.detectChanges(); | 109 | this.cd.detectChanges(); |