<< Click to Display Table of Contents >>

 

new sg.InfoWindow(params, parent)

 

 

Description

Create an info window.

 

Position

InfoWindow.js

 

 

Parameters

 

Parameter

Type

Description

params

Object

The parameters of the InfoWindow

parent

Object

The parent node.

 

 

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.

True:Show
False:Hide

 

 

Methods

 

Methods

Type

Description

move(point)

sg.geometry.Point

Move the infoWindow to a specified screen coordinate.

Name

Type

Description

point

sg.geometry.Point

Specify the screen coordinate to show info window

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

The content of info window. Supports HTML format.

show(location)

sg.geometry.Point

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.

update()


update InfoWindow.

 

 

Events

 

Event

Description

hide

Called when InfoWindow is closed

show

Called when InfoWindow is opened

 

 

 

 

 


©2015 Supergeo Technologies Inc.