Skip to content

Commit

Permalink
fix: zoom auto after navigation (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelkhay committed Oct 24, 2023
1 parent bbef900 commit 6920f85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class CartographieLayout {
this._lieuxMediationNumeriqueListPresenter.lieuxMediationNumeriqueByDistance$(of(NO_LOCALISATION));

public defaultAddress$: Observable<string | null> = this.route.queryParamMap.pipe(
map((paramMap: ParamMap) => paramMap.get('address'))
map((paramMap: ParamMap) => (this.fromOrientation ? null : paramMap.get('address')))
);

public fromOrientation: boolean = Object.keys(this.route.snapshot.queryParams).length > 0;
Expand Down

0 comments on commit 6920f85

Please sign in to comment.