Skip to content

Commit cf9990c

Browse files
authored
Add click event listener to prevent default POI window (#1145)
Debugging (sort of): Added a click event listener to the map to prevent default POI info window.
1 parent 2f1b1a4 commit cf9990c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

samples/event-poi/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async function initMap() {
2121
// Create the initial info window.
2222
let infowindow = new google.maps.InfoWindow({});
2323

24+
// Add a listener for click events on the map.
2425
innerMap.addListener('click', (event) => {
2526
// Prevent the default POI info window from showing.
2627
event.stop();

0 commit comments

Comments
 (0)