Skip to content

Commit

Permalink
docs(examples): add ControlPanel to marker-clustering example (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscrjunior committed May 11, 2024
1 parent ca95431 commit af3198b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/marker-clustering/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import {MarkerClusterer} from '@googlemaps/markerclusterer';
import type {Marker} from '@googlemaps/markerclusterer';
import trees from './trees';
import ControlPanel from './control-panel';

const API_KEY =
globalThis.GOOGLE_MAPS_API_KEY ?? (process.env.GOOGLE_MAPS_API_KEY as string);
Expand All @@ -24,6 +25,7 @@ const App = () => (
disableDefaultUI>
<Markers points={trees} />
</Map>
<ControlPanel />
</APIProvider>
);

Expand Down

0 comments on commit af3198b

Please sign in to comment.