Skip to content

Commit 05d7704

Browse files
authored
fix: Adds missing region tags. (#678)
* fix: Adds missing region tags. * Update style.css Changes "start" to "end" because I copied and pasted with my eyes closed.
1 parent 5026ab3 commit 05d7704

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

samples/deckgl-heatmap/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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]-->

samples/deckgl-heatmap/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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
88
declare 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
2524
let 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

199197
initMap();
198+
/* [END maps_deckgl_heatmap] */

samples/deckgl-heatmap/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.
@@ -26,7 +26,6 @@ body {
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 {
3231
position: 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] */

0 commit comments

Comments
 (0)