Merge pull request #1778 from Dashue/googlemaps.infobubble.getposition

added getPosition();
This commit is contained in:
Masahiro Wakame
2014-03-07 20:51:41 +09:00
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 {