Fix lost styling after navigation
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

pull/1/head
Willem Dantuma 2020-02-17 10:23:17 +01:00
parent 81ed89b240
commit fd28af2f6c
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,6 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
}
ngOnInit() {
this.store.dispatch(new mapActions.Init());
this.selectedFeatures$.next({x:0,y:0,features:[]});
this.mapState$ = this.store.select(mapReducers.selectGetMapState);
this.parentCode$ = this.store.select(mapReducers.selectGetParentCode);
@ -183,6 +182,7 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit {
private lastQueryState: string = this.serializeService.serialize(mapReducers.initialQueryState);
private lastMapState: string = "";
ngAfterViewInit() {
this.store.dispatch(new mapActions.Init());
this.paramSub = this.route.paramMap.subscribe((params: ParamMap) => {
//console.log("Param sub");
var newMapState: IMapState = null;