Browse Source

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

pull/6109/head
Igor Kulikov 4 years ago
parent
commit
39b76065a3
  1. 3
      ui-ngx/src/app/modules/home/components/widget/lib/maps/map-widget.interface.ts
  2. 1
      ui-ngx/src/app/modules/home/components/widget/trip-animation/trip-animation.component.ts

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

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

Loading…
Cancel
Save