Skip to content

Commit

Permalink
fix(share-map): getUrl must not be executed on component initializati…
Browse files Browse the repository at this point in the history
…on if using the context api
  • Loading branch information
mbarbeau committed Jun 4, 2019
1 parent 0d23cc2 commit 2f3caeb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export class ShareMapBindingDirective implements OnInit {
this.layerListService.onlyInRange = onlyInRangeFromUrl === '1' ? true : false;
this.layerListService.onlyInRangeInitialized = true;
}
this.component.resetUrl();
if (!this.component.hasApi) {
this.component.resetUrl();
}
});
}
}
Expand Down

0 comments on commit 2f3caeb

Please sign in to comment.