diff --git a/googlemaps.infobubble/google.maps.infobubble-tests.ts b/googlemaps.infobubble/google.maps.infobubble-tests.ts index 61f6b7ac5..7dcfa739b 100644 --- a/googlemaps.infobubble/google.maps.infobubble-tests.ts +++ b/googlemaps.infobubble/google.maps.infobubble-tests.ts @@ -26,8 +26,11 @@ function test_bubble() { var map: google.maps.Map; var marker: google.maps.Marker; var bubble: google.maps.infobubble.InfoBubble; + var position: google.maps.LatLng; bubble.open(map, marker); var isOpen = bubble.isOpen(); bubble.close(); + + position = bubble.getPosition(); } \ No newline at end of file diff --git a/googlemaps.infobubble/google.maps.infobubble.d.ts b/googlemaps.infobubble/google.maps.infobubble.d.ts index f65dd1114..2d88d8645 100644 --- a/googlemaps.infobubble/google.maps.infobubble.d.ts +++ b/googlemaps.infobubble/google.maps.infobubble.d.ts @@ -57,6 +57,11 @@ declare module google.maps.infobubble { * @marker The marker used for anchoring the infobubble to */ open(map: google.maps.Map, marker: google.maps.Marker) : void; + + /** + * Returns the position of the InfoBubble + */ + getPosition(): google.maps.LatLng; } export interface InfoBubbleOptions {