Skip to content

Commit e0a5dc5

Browse files
authored
fix: Refactors variable declarations to fix region tag. (#719)
Change-Id: Ib21c1d536cb81d79e476ba25f9317afbe772d476
1 parent 6bdfb09 commit e0a5dc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/deckgl-polygon/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
/* [START maps_deckgl_polygon] */
7+
// Initialize and add the map
8+
let map: google.maps.Map;
9+
let polygonLayer: deck.PolygonLayer; // Declare polygonLayer outside for button access
10+
let googleMapsOverlay: deck.GoogleMapsOverlay; // Declare googleMapsOverlay outside for button access
11+
712
// Declare global namespace for Deck.gl to satisfy TypeScript compiler
813
declare namespace deck {
914
class PolygonLayer {
@@ -20,11 +25,6 @@ declare namespace deck {
2025
// Add other Deck.gl types used globally if needed
2126
}
2227

23-
// Initialize and add the map
24-
let map: google.maps.Map;
25-
let polygonLayer: deck.PolygonLayer; // Declare polygonLayer outside for button access
26-
let googleMapsOverlay: deck.GoogleMapsOverlay; // Declare googleMapsOverlay outside for button access
27-
2828
async function initMap(): Promise<void> {
2929
// Progress bar logic moved from index.html
3030
var progress, progressDiv = document.querySelector(".mdc-linear-progress");

0 commit comments

Comments
 (0)