Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions dist/samples/deckgl-polygon/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_deckgl_polygon] */
// Initialize and add the map
let map: google.maps.Map;
let polygonLayer: deck.PolygonLayer; // Declare polygonLayer outside for button access
let googleMapsOverlay: deck.GoogleMapsOverlay; // Declare googleMapsOverlay outside for button access

// Declare global namespace for Deck.gl to satisfy TypeScript compiler
declare namespace deck {
class PolygonLayer {
Expand All @@ -20,11 +25,6 @@ declare namespace deck {
// Add other Deck.gl types used globally if needed
}

// Initialize and add the map
let map: google.maps.Map;
let polygonLayer: deck.PolygonLayer; // Declare polygonLayer outside for button access
let googleMapsOverlay: deck.GoogleMapsOverlay; // Declare googleMapsOverlay outside for button access

async function initMap(): Promise<void> {
// Progress bar logic moved from index.html
var progress, progressDiv = document.querySelector(".mdc-linear-progress");
Expand Down
1 change: 0 additions & 1 deletion dist/samples/deckgl-polygon/dist/assets/index--YAHIMlV.js

This file was deleted.

5 changes: 5 additions & 0 deletions dist/samples/deckgl-polygon/dist/assets/index-Cdk1EUKh.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/samples/deckgl-polygon/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@



<script type="module" crossorigin src="./assets/index--YAHIMlV.js"></script>
<script type="module" crossorigin src="./assets/index-Cdk1EUKh.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-5cxXJn4L.css">
</head>
<body>
Expand Down
6 changes: 6 additions & 0 deletions dist/samples/deckgl-polygon/docs/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"use strict";
/*
* @license
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_deckgl_polygon] */
// Initialize and add the map
let map;
let polygonLayer; // Declare polygonLayer outside for button access
Expand Down
10 changes: 5 additions & 5 deletions dist/samples/deckgl-polygon/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_deckgl_polygon] */
// Initialize and add the map
let map: google.maps.Map;
let polygonLayer: deck.PolygonLayer; // Declare polygonLayer outside for button access
let googleMapsOverlay: deck.GoogleMapsOverlay; // Declare googleMapsOverlay outside for button access

// Declare global namespace for Deck.gl to satisfy TypeScript compiler
declare namespace deck {
class PolygonLayer {
Expand All @@ -20,11 +25,6 @@ declare namespace deck {
// Add other Deck.gl types used globally if needed
}

// Initialize and add the map
let map: google.maps.Map;
let polygonLayer: deck.PolygonLayer; // Declare polygonLayer outside for button access
let googleMapsOverlay: deck.GoogleMapsOverlay; // Declare googleMapsOverlay outside for button access

async function initMap(): Promise<void> {
// Progress bar logic moved from index.html
var progress, progressDiv = document.querySelector(".mdc-linear-progress");
Expand Down
6 changes: 6 additions & 0 deletions dist/samples/deckgl-polygon/jsfiddle/demo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"use strict";
/*
* @license
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_deckgl_polygon] */
// Initialize and add the map
let map;
let polygonLayer; // Declare polygonLayer outside for button access
Expand Down