Browse Source

update position on change min time

pull/2808/head
Artem Halushko 6 years ago
parent
commit
c9c0f4650d
  1. 2
      ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts

2
ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts

@ -103,7 +103,7 @@ export class TripAnimationComponent implements OnInit, AfterViewInit {
this.historicalData = parseArray(this.ctx.data).filter(arr => arr.length);
if (this.historicalData.length) {
this.calculateIntervals();
this.timeUpdated(this.currentTime ? this.currentTime : this.minTime);
this.timeUpdated(this.currentTime && this.currentTime > this.minTime ? this.currentTime : this.minTime);
}
this.mapWidget.map.map?.invalidateSize();
this.cd.detectChanges();

Loading…
Cancel
Save