<< Click to Display Table of Contents >>

 

new sg.InfoWindowBase()

 

 

Description

Create an InfoWindowBase.

 

Position

InfoWindow.js

 

 

Properties

 

Properties

Type

Description

domNode

DOMNODE

The DOM node where the info window constructed.

isShowing

Boolean

A Boolean value representing whether the InfoWindow is shown or not.

 

 

Methods

 

Methods

Type

Description

setMap(map)

MapBase

When an object is set as map's info window, this method will be called by the map.

Name

Type

Description

map

MapBase


setTitle(title)

String

Define the title in the infoWindow.

Name

Type

Description

title

String

The title of info window

setContent(content)

String

Define the content in the infoWindow.

Name

Type

Description

content

String

iThe content of info window

show(location)

String

Show the infoWindow.

Name

Type

Description

location

sg.geometry.Point

Specify a position to show the info window

hide()


Hide the infoWindow.

resize(width, height)

width:Number

height:Number

Resize the infoWindow to the specified width and height.

Name

Type

Description

width

Number

The width of the info window

height

Number

The height of the info window

unsetMap()


remove the InfoWindow from the current map.

 

 

Events

 

Event

Description

hide

Called when InfoWindow is closed

show

Called when InfoWindow is opened

 

 

 


©2015 Supergeo Technologies Inc.