Skip to content

Commit d09a1a8

Browse files
authored
Update map options to hide controls
Disable street view and fullscreen controls on the map.
1 parent 5d97ed2 commit d09a1a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/ai-powered-summaries/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ async function initMap(): Promise<void> {
3232
innerMap = mapElement.innerMap;
3333
innerMap.setOptions({
3434
mapTypeControl: false,
35+
streetViewControl: false,
36+
fullscreenControl: false,
3537
});
3638

3739
// Bind autocomplete bounds to map bounds.
@@ -158,7 +160,7 @@ function updateSummaryPanel(place: google.maps.places.Place) {
158160
place.reviewSummary.disclosureText
159161
);
160162
}
161-
163+
162164
// --- 3. Neighborhood Summary ---
163165
//@ts-ignore
164166
if (place.neighborhoodSummary?.overview?.content) {

0 commit comments

Comments
 (0)