diff --git a/projects/common-map/src/fm-map/components/map/map.component.ts b/projects/common-map/src/fm-map/components/map/map.component.ts index e96bd3b..cfe38b9 100644 --- a/projects/common-map/src/fm-map/components/map/map.component.ts +++ b/projects/common-map/src/fm-map/components/map/map.component.ts @@ -130,19 +130,16 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { this.selectedFeatures$.next(null); this.query$.pipe(withLatestFrom(this.mapState$),withLatestFrom(this.setStateCount$)).subscribe(([[queryState,mapState],setStateCount]) =>{ if(setStateCount>0) { - console.debug("Querystate:replace url"); this.replaceUrl(mapState,queryState,false); } }); this.mapState$.pipe(withLatestFrom(this.queryState$),withLatestFrom(this.setStateCount$)).subscribe(([[mapState,queryState],setStateCount]) =>{ if(setStateCount>0) { - console.debug("Mapstate:replace url"); this.replaceUrl(mapState,queryState,true); } }); this.queryState$.pipe(withLatestFrom(this.mapState$),withLatestFrom(this.setStateCount$)).subscribe(([[queryState,mapState],setStateCount]) =>{ if(setStateCount>0) { - console.debug("Querystate:replace url"); this.replaceUrl(mapState,queryState,true); } }) @@ -202,13 +199,10 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { setTimeout(() => { this.zone.run(()=> { if ( queryStateChanged && mapStateChanged) { - console.debug("Both states"); this.store.dispatch(new mapActions.SetState(newMapState,newQueryState)); } else if(queryStateChanged) { - console.debug("Query state"); this.store.dispatch(new mapActions.SetQueryState(newQueryState)); } else if (mapStateChanged) { - console.debug("Map state"); this.store.dispatch(new mapActions.SetMapState(newMapState)); } }) @@ -217,7 +211,6 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { setTimeout(() => { this.map.instance.updateSize(); }, 500); - console.debug("Afterviewinit"); } handleSearchCollapse(event) { @@ -249,7 +242,6 @@ export class MapComponent implements OnInit, OnDestroy,AfterViewInit { } replaceUrl(mapState: IMapState, queryState: IQueryState, replace: boolean = true) { - console.debug(`Replace url : Baselayer(${mapState.baseLayerCode}) Querystate(${this.serializeService.serialize(queryState)})`); let parts =["."]; parts.push(mapState.xCenter.toFixed(5)); parts.push(mapState.yCenter.toFixed(5));