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(); }; }