Remove logging
This commit is contained in:
parent
c777ce75ad
commit
80134e5ad0
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user