Skip to content

Commit

Permalink
fix(sharemap): Context was not provided to every links. Impact on lay…
Browse files Browse the repository at this point in the history
…ers visibility Issue #322 (#463)
  • Loading branch information
pelord authored and mbarbeau committed Oct 10, 2019
1 parent 2c9ffa8 commit 47e8454
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ export class ShareMapService {
const center = `${centerKey}=${long},${lat}`.replace(/.00000/g, '');
let context = '';
if (this.contextService.context$.value) {
if (this.contextService.context$.value.uri !== '_default') {
context = `${contextKey}=${this.contextService.context$.value.uri}`;
}
context = `${contextKey}=${this.contextService.context$.value.uri}`;
}

let url = `${location.origin}${location.pathname}?${context}&${zoom}&${center}&${layersUrl}&${llc}&${addedLayersQueryParams}`;
Expand Down

0 comments on commit 47e8454

Please sign in to comment.