Skip to content

Commit

Permalink
Update index.ts to include MarkerClusterer import in region (#1811)
Browse files Browse the repository at this point in the history
The MarkerClusterer import was left out of all regions, causing some users to ask "whaaaat???". This change moves the vital import statement back into the region for the code example so everyone can see it and no, you are NOT crazy.
  • Loading branch information
willum070 authored Sep 6, 2024
1 parent 29d6cf0 commit ee51a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/marker-clustering/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Copyright 2019 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// [START maps_marker_clustering]
import { MarkerClusterer } from "@googlemaps/markerclusterer";

// [START maps_marker_clustering]
async function initMap() {
// Request needed libraries.
const { Map, InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
Expand Down

0 comments on commit ee51a01

Please sign in to comment.