diff --git a/samples/deckgl-heatmap/index.html b/samples/deckgl-heatmap/index.html index 4331feb8c..b6550e9d3 100644 --- a/samples/deckgl-heatmap/index.html +++ b/samples/deckgl-heatmap/index.html @@ -4,6 +4,7 @@ Copyright 2019 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> + deck.gl HeatmapLayer and Google Maps Platform @@ -71,4 +72,5 @@

Bike Parking Spaces

({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"}); - \ No newline at end of file + + \ No newline at end of file diff --git a/samples/deckgl-heatmap/index.ts b/samples/deckgl-heatmap/index.ts index 9ace375ab..41af0a2f8 100644 --- a/samples/deckgl-heatmap/index.ts +++ b/samples/deckgl-heatmap/index.ts @@ -3,7 +3,7 @@ * Copyright 2025 Google LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ - +/* [START maps_deckgl_heatmap] */ // Declare global namespace for Deck.gl to satisfy TypeScript compiler declare namespace deck { class HeatmapLayer { @@ -20,7 +20,6 @@ declare namespace deck { // Add other Deck.gl types used globally if needed } - // Initialize and add the map let map: google.maps.Map; // Use global types for Deck.gl components @@ -45,7 +44,6 @@ async function initMap(): Promise { }; } - // The location for the map center. const position = {lat:37.77325660358167, lng:-122.41712341793448}; // Using the center from original deckgl-polygon.js @@ -197,3 +195,4 @@ async function initMap(): Promise { } initMap(); +/* [END maps_deckgl_heatmap] */ \ No newline at end of file diff --git a/samples/deckgl-heatmap/style.css b/samples/deckgl-heatmap/style.css index 07d09c1ad..72c9f28db 100644 --- a/samples/deckgl-heatmap/style.css +++ b/samples/deckgl-heatmap/style.css @@ -3,7 +3,7 @@ * Copyright 2025 Google LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -/* [START maps_add_map] */ +/* [START maps_deckgl_heatmap] */ /* * Always set the map height explicitly to define the size of the div element * that contains the map. @@ -26,7 +26,6 @@ body { position: relative; /* Set body as positioning context */ font-family: 'Roboto', Arial, sans-serif; /* Set font family */ } -/* [END maps_add_map] */ #toggleButton { position: absolute; @@ -101,4 +100,5 @@ margin:10px; transform: translateX(-50%); /* Adjust for centering */ top: auto; /* Remove top positioning */ } -} \ No newline at end of file +} +/* [END maps_deckgl_heatmap] */