File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
813declare 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-
2828async function initMap ( ) : Promise < void > {
2929 // Progress bar logic moved from index.html
3030 var progress , progressDiv = document . querySelector ( ".mdc-linear-progress" ) ;
You can’t perform that action at this time.
0 commit comments