From e422febdd67fa711726f165d52853c7be9ab3be9 Mon Sep 17 00:00:00 2001 From: William French Date: Fri, 8 May 2026 12:29:30 -0700 Subject: [PATCH] fix: Swaps declaration order to preserve region tag This PR swaps the declaration order for advanced-markers-collision, to prevent the opening region tag from being stripped. If the region tag is positioned immediately before any item that TSC strips, it will also strip the region tag since it's just a comment. --- samples/advanced-markers-collision/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/advanced-markers-collision/index.ts b/samples/advanced-markers-collision/index.ts index cacc84686..9a5f6c820 100644 --- a/samples/advanced-markers-collision/index.ts +++ b/samples/advanced-markers-collision/index.ts @@ -5,6 +5,8 @@ */ // [START maps_advanced_markers_collision] +const mapElement = document.querySelector('gmp-map')!; + declare namespace mdc { namespace select { class MDCSelect { @@ -15,8 +17,6 @@ declare namespace mdc { } } -const mapElement = document.querySelector('gmp-map')!; - // Initialize and add the map async function init(): Promise { // Request needed libraries.