Skip to content

Commit 30fa3d1

Browse files
authored
Change marker event listener to addEventListener (#1271)
1 parent 6ff2305 commit 30fa3d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/event-simple/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function initMap() {
3636
});
3737

3838
// Zoom in when the marker is clicked.
39-
marker.addListener('gmp-click', () => {
39+
marker.addEventListener('gmp-click', () => {
4040
innerMap.setZoom(8);
4141
innerMap.setCenter(marker.position as google.maps.LatLng);
4242
});

0 commit comments

Comments
 (0)