From c339c14919be69608c6281a25f04d44cad1d4b79 Mon Sep 17 00:00:00 2001 From: William French Date: Wed, 7 Oct 2026 09:44:38 -0700 Subject: [PATCH 1/3] fix: Changes position of menu to avoid overlap with default menu Change-Id: I2d77e84a5670cce0826978d83a31bfd1b7552f0b --- samples/3d-map-roadmap/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/3d-map-roadmap/style.css b/samples/3d-map-roadmap/style.css index 6e22a2354..cf821f2c2 100644 --- a/samples/3d-map-roadmap/style.css +++ b/samples/3d-map-roadmap/style.css @@ -21,8 +21,8 @@ gmp-map-3d { .map-mode-control { position: fixed; - bottom: 24px; - right: 75px; + bottom: 125px; + right: 0px; display: flex; align-items: center; background-color: rgba(255, 255, 255, 0.9); From 0bc2d81b4e488c35b3a815529ba4cbf1a5f32d62 Mon Sep 17 00:00:00 2001 From: William French Date: Wed, 7 Oct 2026 09:53:45 -0700 Subject: [PATCH 2/3] Added strict TS cast for MapMode Change-Id: I78ee83a592fa150fd23cdb509b7eb8e96104e719 --- samples/3d-map-roadmap/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/3d-map-roadmap/index.ts b/samples/3d-map-roadmap/index.ts index ae13d4405..4bc243138 100644 --- a/samples/3d-map-roadmap/index.ts +++ b/samples/3d-map-roadmap/index.ts @@ -44,7 +44,7 @@ async function init() { }); selector.addEventListener('change', function () { - map.mode = this.value as google.maps.maps3d.MapMode; + map.mode = this.value as unknown as google.maps.maps3d.MapMode; }); controls.appendChild(selector); From 3d927dec949ff9ccef8c41639345edb31c4b3565 Mon Sep 17 00:00:00 2001 From: William French Date: Wed, 7 Oct 2026 10:06:04 -0700 Subject: [PATCH 3/3] Changes event to use MapModeString since it's a bit cleaner Change-Id: I6732ef131fa2437c807324abe6d4d28a52bbc01f --- samples/3d-map-roadmap/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/3d-map-roadmap/index.ts b/samples/3d-map-roadmap/index.ts index 4bc243138..df38ccd59 100644 --- a/samples/3d-map-roadmap/index.ts +++ b/samples/3d-map-roadmap/index.ts @@ -44,7 +44,7 @@ async function init() { }); selector.addEventListener('change', function () { - map.mode = this.value as unknown as google.maps.maps3d.MapMode; + map.mode = this.value as google.maps.maps3d.MapModeString; }); controls.appendChild(selector);