mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
added getPosition();
This commit is contained in:
@@ -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();
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user