diff --git a/samples/maps/geo-map/display-azure-imagery/src/app.component.html b/samples/maps/geo-map/display-azure-imagery/src/app.component.html index 75dc9f3f..486b8110 100644 --- a/samples/maps/geo-map/display-azure-imagery/src/app.component.html +++ b/samples/maps/geo-map/display-azure-imagery/src/app.component.html @@ -1,12 +1,10 @@
- -
- + +
- Azure Key - -
- - Map Imagery - - - - - -
+ +
+ Map Imagery + + + +
diff --git a/samples/maps/geo-map/display-azure-imagery/src/app.component.scss b/samples/maps/geo-map/display-azure-imagery/src/app.component.scss index f1d94723..d5623b9c 100644 --- a/samples/maps/geo-map/display-azure-imagery/src/app.component.scss +++ b/samples/maps/geo-map/display-azure-imagery/src/app.component.scss @@ -28,4 +28,48 @@ ::ng-deep igx-dialog.custom-dialog { width: 400px; height: auto; -} \ No newline at end of file +} + +/* === Map layout fixes for iframe === */ +.container { + display: flex; + flex-direction: column; + align-items: center; +} + +/* Controls always on top */ +.controls-row { + display: flex; + gap: 8px; + align-items: center; + position: relative; + z-index: 10; /* ensures above map */ +} + +/* Map container fixed height */ +.map-container { + position: relative; + width: 100%; + height: 500px; /* same as React sample */ + z-index: 0; +} + +/* Placeholder image overlays map but lets clicks through */ +.map-container img.placeholder { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + object-fit: cover; + z-index: 1; + pointer-events: none; +} + +/* Map fills its container but stays below controls */ +.map-container igx-geographic-map { + position: relative; + width: 100%; + height: 100%; + z-index: 0; +}