Pasting an old query string does not restore bbox:
Closed this issue · 1 comments
boeckMt commented
@MichaelLangbein what exactly do you mean by pasting?
After a reload it should use the new query param, if not then it gets reset afterwards.
E.g. do it in this way
ngOnInit(): void {
...
this.subscribeToMapState(); // update url params on map state change
this.subscribeToRoute(); // get route on init to update the map with url params
}
But then do not use something like this, which is resetting the state later.
ngAfterViewInit(){
...
this.mapSvc.setZoom(8);
this.mapSvc.setCenter(center, true);
}