File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 44 Copyright 2019 Google LLC. All Rights Reserved.
55 SPDX-License-Identifier: Apache-2.0
66-->
7+ <!--[START maps_deckgl_heatmap]-->
78< html >
89 < head >
910 < title > deck.gl HeatmapLayer and Google Maps Platform</ title >
@@ -71,4 +72,5 @@ <h4>Bike Parking Spaces</h4>
7172 ( { key : "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" , v : "weekly" } ) ; </ script >
7273
7374 </ body >
74- </ html >
75+ </ html >
76+ <!--[END maps_deckgl_heatmap]-->
Original file line number Diff line number Diff line change 33 * Copyright 2025 Google LLC. All Rights Reserved.
44 * SPDX-License-Identifier: Apache-2.0
55 */
6-
6+ /* [START maps_deckgl_heatmap] */
77// Declare global namespace for Deck.gl to satisfy TypeScript compiler
88declare namespace deck {
99 class HeatmapLayer {
@@ -20,7 +20,6 @@ declare namespace deck {
2020 // Add other Deck.gl types used globally if needed
2121}
2222
23-
2423// Initialize and add the map
2524let map : google . maps . Map ;
2625// Use global types for Deck.gl components
@@ -45,7 +44,6 @@ async function initMap(): Promise<void> {
4544 } ;
4645 }
4746
48-
4947 // The location for the map center.
5048 const position = { lat :37.77325660358167 , lng :- 122.41712341793448 } ; // Using the center from original deckgl-polygon.js
5149
@@ -197,3 +195,4 @@ async function initMap(): Promise<void> {
197195}
198196
199197initMap ( ) ;
198+ /* [END maps_deckgl_heatmap] */
Original file line number Diff line number Diff line change 33 * Copyright 2025 Google LLC. All Rights Reserved.
44 * SPDX-License-Identifier: Apache-2.0
55 */
6- /* [START maps_add_map ] */
6+ /* [START maps_deckgl_heatmap ] */
77 /*
88 * Always set the map height explicitly to define the size of the div element
99 * that contains the map.
2626 position : relative; /* Set body as positioning context */
2727 font-family : 'Roboto' , Arial, sans-serif; /* Set font family */
2828}
29- /* [END maps_add_map] */
3029
3130# toggleButton {
3231position : absolute;
@@ -101,4 +100,5 @@ margin:10px;
101100 transform : translateX (-50% ); /* Adjust for centering */
102101 top : auto; /* Remove top positioning */
103102 }
104- }
103+ }
104+ /* [END maps_deckgl_heatmap] */
You can’t perform that action at this time.
0 commit comments