<< 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.
|
|||||||||
setTitle(title) |
String |
Define the title in the infoWindow.
|
|||||||||
setContent(content) |
String |
Define the content in the infoWindow.
|
|||||||||
show(location) |
String |
Show the infoWindow.
|
|||||||||
hide() |
Hide the infoWindow. |
||||||||||
resize(width, height) |
width:Number height:Number |
Resize the infoWindow to the specified width and height.
|
|||||||||
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.