InfoWindow

Info Windows

參考資料:(https://developers.google.com/maps/documentation/javascript/infowindows?hl=zh-tw)

開啟window

InfoWindow.open(map, marker);

關閉Window

InfoWindow.close();

操作Window的內部極限

content內設定一組<div>,利用該<div>去控制內容。 其它是 GoogleMap 自己的設定。

建立Window物件

var InfoWindow = new google.maps.InfoWindow({
    content:''
});

Last updated