<< Click to Display Table of Contents >>

SuperGIS Server JavaScript API

 

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 時被呼叫。

Name

Type

Description

map

MapBase


setTitle(title)

String

定義infoWindow 的標題。

Name

Type

Description

title

String

infoWindow 的標題

setContent(content)

String

定義infoWindow 的內容。

Name

Type

Description

content

String

infoWindow 的內容

show(location)

String

在一指定的位置顯示infoWindow。

Name

Type

Description

location

sg.geometry.Point

指定的位置

hide()


隱藏 infoWindow.

resize(width, height)

width:Number

height:Number

指定寬度與高度來重新調整 infoWindow。

Name

Type

Description

width

Number

寬度

height

Number

高度

unsetMap()


將InfoWindow從當前地圖中移除

 

 

Events

 

Event

Description

hide

當infoWindow被關閉時呼叫

show

當infoWindow被開啟時呼叫

 

 

 


©2015 Supergeo Technologies Inc.