From 39b76065a337ac7b786ea7e29dbb267cd0edbabc Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 10 Feb 2022 12:36:11 +0200 Subject: [PATCH] UI: Fix trip animation widget - remove loading section after data retrieved. --- .../home/components/widget/lib/maps/map-widget.interface.ts | 3 ++- .../widget/trip-animation/trip-animation.component.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget.interface.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget.interface.ts index 2e26bea53e..252f0f6590 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget.interface.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget.interface.ts @@ -16,9 +16,10 @@ import { JsonSettingsSchema } from '@shared/models/widget.models'; import { MapProviders } from '@home/components/widget/lib/maps/map-models'; +import LeafletMap from '@home/components/widget/lib/maps/leaflet-map'; export interface MapWidgetInterface { - map?: any; + map?: LeafletMap; resize(); update(); destroy(); diff --git a/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts b/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts index 1f1ff83438..910d76787f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts @@ -140,6 +140,7 @@ export class TripAnimationComponent implements OnInit, AfterViewInit, OnDestroy } } this.mapWidget.map.map?.invalidateSize(); + this.mapWidget.map.setLoading(false); this.cd.detectChanges(); }; }