From 0c026977906960020bc9bd05f0b5ff1fbd0495c1 Mon Sep 17 00:00:00 2001 From: mddifilippo89 Date: Thu, 23 Oct 2025 12:00:12 -0400 Subject: [PATCH 1/2] mdd-update-azure-height mdd-update-azure-height --- .../display-azure-imagery/src/app.component.scss | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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 d5623b9c8..af01d704b 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 @@ -50,7 +50,7 @@ .map-container { position: relative; width: 100%; - height: 500px; /* same as React sample */ + height: 100%; /* same as React sample */ z-index: 0; } @@ -60,16 +60,11 @@ 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; +.img.placeholder { + height: 500px; } From 5637c050d93b07b913a6f0b7e1b4bced2d1cfaae Mon Sep 17 00:00:00 2001 From: mddifilippo89 Date: Thu, 23 Oct 2025 12:27:49 -0400 Subject: [PATCH 2/2] update map height update map height --- .../src/app.component.scss | 99 ++++++++++--------- 1 file changed, 53 insertions(+), 46 deletions(-) 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 af01d704b..cb7931ef2 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 @@ -1,70 +1,77 @@ :host { - display: inline; - padding: 0px; -} - -.keyInForm { - igx-input-group + igx-input-group { - margin-top: 24px; - } -} - -.dialog-container{ - display: flex; - - igx-icon { - margin-right: 8px; - } -} - -.hidden { - display: none; -} - -.show { - display: inline; -} - -::ng-deep igx-dialog.custom-dialog { - width: 400px; - height: auto; -} - -/* === Map layout fixes for iframe === */ -.container { display: flex; flex-direction: column; - align-items: center; + height: 100%; + width: 100%; + padding: 0; } -/* Controls always on top */ +/* === Controls === */ .controls-row { display: flex; + flex-wrap: wrap; gap: 8px; align-items: center; + justify-content: center; position: relative; - z-index: 10; /* ensures above map */ + z-index: 10; /* stay above map */ + padding: 8px 0; } -/* Map container fixed height */ +/* === Map Container === */ .map-container { + flex: 1 1 auto; /* expand to fill available space */ + display: flex; + flex-direction: column; position: relative; width: 100%; - height: 100%; /* same as React sample */ + height: 100%; + overflow: hidden; +} + +/* Map expands full width/height */ +.map-container igx-geographic-map { + flex: 1 1 auto; + width: 100%; + height: 100%; + position: absolute; + inset: 0; z-index: 0; } -/* Placeholder image overlays map but lets clicks through */ +/* === Placeholder Image === */ .map-container img.placeholder { position: absolute; - top: 0; - left: 0; - width: 100%; - object-fit: cover; + top: 50%; + left: 50%; + width: 950px; + max-width: 900px; + height: auto; + transform: translate(-50%, -50%); + object-fit: contain; z-index: 1; - pointer-events: none; + pointer-events: none; /* clicks go through */ } -.img.placeholder { - height: 500px; +/* === Utility Classes === */ +.hidden { + display: none !important; +} + +.show { + display: inline !important; +} + +.dialog-container { + display: flex; + align-items: center; + + igx-icon { + margin-right: 8px; + } +} + +::ng-deep igx-dialog.custom-dialog { + width: 400px; + height: auto; }