<< Click to Display Table of Contents >>
new sg.InfoWindowBase()
Description
建立一個 InfoWindowBase 物件
Position
InfoWindow.js
Properties
Properties |
Type |
Description |
domNode |
DOMNODE |
訊息視窗的html節點 |
isShowing |
Boolean |
指出訊息視窗是否可見 |
Methods
Methods |
Type |
Description |
|||||||||
setMap(map) |
MapBase |
此方法將會在物件被設定為地圖的infoWindow 時被呼叫。
|
|||||||||
setTitle(title) |
String |
定義infoWindow 的標題。
|
|||||||||
setContent(content) |
String |
定義infoWindow 的內容。
|
|||||||||
show(location) |
String |
在一指定的位置顯示infoWindow。
|
|||||||||
hide() |
隱藏 infoWindow. |
||||||||||
resize(width, height) |
width:Number height:Number |
指定寬度與高度來重新調整 infoWindow。
|
|||||||||
unsetMap() |
將InfoWindow從當前地圖中移除 |
Events
Event |
Description |
hide |
當infoWindow被關閉時呼叫 |
show |
當infoWindow被開啟時呼叫 |
©2015 Supergeo Technologies Inc.