diff --git a/samples/maps/geo-map/display-azure-imagery/src/app.component.ts b/samples/maps/geo-map/display-azure-imagery/src/app.component.ts index 038299c8..651af83e 100644 --- a/samples/maps/geo-map/display-azure-imagery/src/app.component.ts +++ b/samples/maps/geo-map/display-azure-imagery/src/app.component.ts @@ -67,6 +67,12 @@ export class AppComponent implements OnInit, AfterViewInit { ngAfterViewInit(): void { // We'll initialize tile imagery after the user sets the API key + // Open dialog automatically after view initializes + setTimeout(() => { + if (this.dialog) { + this.dialog.open(); + } + }); } public openDialog() {