added getPosition();

This commit is contained in:
Johan Nilsson
2014-03-03 18:48:04 -04:00
parent 0854df3b0f
commit e2d790938b
2 changed files with 8 additions and 0 deletions
@@ -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();
}
+5
View File
@@ -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 {