Skip to content

Commit

Permalink
fix: Fixes broken infowindow on event handler. (#1689)
Browse files Browse the repository at this point in the history
This fix removes weird parenthesis from position values, which appear to have broken the infowindow functionality here.
  • Loading branch information
willum070 authored Apr 8, 2024
1 parent 26bad9f commit 2c11486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/advanced-markers-draggable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
draggableMarker.addListener('dragend', (event) => {
const position = draggableMarker.position as google.maps.LatLng;
infoWindow.close();
infoWindow.setContent(`Pin dropped at: ${position.lat()}, ${position.lng()}`);
infoWindow.setContent(`Pin dropped at: ${position.lat}, ${position.lng}`);
infoWindow.open(draggableMarker.map, draggableMarker);
});

Expand Down

0 comments on commit 2c11486

Please sign in to comment.