Skip to content

Commit

Permalink
Fixes #1655 - Bad overlay causes the site not to load correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Nov 20, 2021
1 parent 1ad74ee commit e186b47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AutomaticLayerPresentationComponent extends BaseMapComponent implem
}

public async ngOnInit() {
if (this.mapComponent.mapInstance == null) {
if (this.mapComponent.mapInstance == null || !this.mapComponent.mapInstance.loaded()) {
this.subscriptions.push(this.mapComponent.mapLoad.subscribe(async () => {
await this.createLayer();
this.sourceAdded = true;
Expand Down

0 comments on commit e186b47

Please sign in to comment.