Skip to content

Commit 2c11486

Browse files
authored
fix: Fixes broken infowindow on event handler. (#1689)
This fix removes weird parenthesis from position values, which appear to have broken the infowindow functionality here.
1 parent 26bad9f commit 2c11486

File tree

1 file changed

+1
-1
lines changed
  • samples/advanced-markers-draggable

1 file changed

+1
-1
lines changed

samples/advanced-markers-draggable/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
draggableMarker.addListener('dragend', (event) => {
3030
const position = draggableMarker.position as google.maps.LatLng;
3131
infoWindow.close();
32-
infoWindow.setContent(`Pin dropped at: ${position.lat()}, ${position.lng()}`);
32+
infoWindow.setContent(`Pin dropped at: ${position.lat}, ${position.lng}`);
3333
infoWindow.open(draggableMarker.map, draggableMarker);
3434
});
3535

0 commit comments

Comments
 (0)