UI: Fix trip animation widget - remove loading section after data retrieved.
This commit is contained in:
parent
d3b33253e3
commit
39b76065a3
@ -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();
|
||||||
|
|||||||
@ -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();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user