From cd5111528af9e0c84c36145b820c6cf3ae2e41a0 Mon Sep 17 00:00:00 2001 From: Wykks Date: Mon, 20 Nov 2017 23:35:42 +0100 Subject: [PATCH] fix(image): addImage seems to need to wait for mapLoaded now --- src/app/lib/image/image.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/lib/image/image.component.ts b/src/app/lib/image/image.component.ts index 75f808cd5..b49d2b36d 100644 --- a/src/app/lib/image/image.component.ts +++ b/src/app/lib/image/image.component.ts @@ -22,7 +22,7 @@ export class ImageComponent implements OnInit, OnDestroy, OnChanges { ) { } ngOnInit() { - this.MapService.mapCreated$.subscribe(() => { + this.MapService.mapLoaded$.subscribe(() => { if (this.data) { this.MapService.addImage( this.id,