google.maps.InfoWindow
類
構(gòu)造函數(shù) | |
---|---|
InfoWindow( | 創(chuàng)建一個(gè)InfoWindow |
Methods | |
---|---|
close() | Return Value: 關(guān)閉創(chuàng)建的Info Window |
getContent() | Return Value: 返回 Info Window 的內(nèi)容 |
getPosition() | Return Value: 返回 Info Window 的位置 |
getZIndex() | Return Value: 返回 Info Window 的層級(jí) |
open( | Return Value: 在給定的Map對(duì)象上打開 Info Window |
setContent( | Return Value: 設(shè)置 Info Window 的內(nèi)容 |
setOptions( | Return Value: 設(shè)置 Info Window 的相關(guān)屬性 |
setPosition( | Return Value:
|
setZIndex( | Return Value: 設(shè)置 Info Window 的層級(jí) |
事件 | |
---|---|
closeclick | Arguments: 單擊關(guān)閉圖標(biāo)后或者調(diào)用close()后觸發(fā) |
content_changed | Arguments: 內(nèi)容改變時(shí)觸發(fā) |
domready | Arguments: 當(dāng) Info Window 的內(nèi)容成交添加到 dom對(duì)象中時(shí)觸發(fā), |
position_changed | Arguments: 位置改變時(shí)觸發(fā) |
zindex_changed | Arguments: 層級(jí)改變時(shí)觸發(fā) |
google.maps.InfoWindowOptions
對(duì)象
屬性 | |
---|---|
content | Type: Info Window 的內(nèi)容 |
disableAutoPan | Type: 是否允許 Info Window 自由移動(dòng) |
maxWidth | Type: Info Window 的最大寬度 |
pixelOffset | Type: 偏移量 |
position | Type: Info Window 的位置 |
zIndex | Type: Info Window 的層級(jí) |