UI: Fix trip animation widget - remove loading section after data retrieved.

This commit is contained in:
Igor Kulikov 2022-02-10 12:36:11 +02:00
parent d3b33253e3
commit 39b76065a3
2 changed files with 3 additions and 1 deletions

View File

@ -16,9 +16,10 @@
import { JsonSettingsSchema } from '@shared/models/widget.models'; import { JsonSettingsSchema } from '@shared/models/widget.models';
import { MapProviders } from '@home/components/widget/lib/maps/map-models'; import { MapProviders } from '@home/components/widget/lib/maps/map-models';
import LeafletMap from '@home/components/widget/lib/maps/leaflet-map';
export interface MapWidgetInterface { export interface MapWidgetInterface {
map?: any; map?: LeafletMap;
resize(); resize();
update(); update();
destroy(); destroy();

View File

@ -140,6 +140,7 @@ export class TripAnimationComponent implements OnInit, AfterViewInit, OnDestroy
} }
} }
this.mapWidget.map.map?.invalidateSize(); this.mapWidget.map.map?.invalidateSize();
this.mapWidget.map.setLoading(false);
this.cd.detectChanges(); this.cd.detectChanges();
}; };
} }