SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IWInfoBalloon
is an example implementation of the IWWindowOverlay
interface.
IWInfoBalloon
can be used to display informations in front of the map.
Constructor Summary | |
IWInfoBalloon(map, coordinate, content)
Creates a new window object. |
Method Summary | |
void
|
afterAppend()
We use the callback method for positioning the map and displaying the info balloon. |
|
calculateSize()
undocumented |
void
|
destroy()
Destroys the info balloon. Call this method after the info balloon has been removed from the map by calling the removeWindowOverlay method.
|
String
|
getCloseImage()
Returns the path to the image used by the separators. |
Object
|
getContent()
Returns the content of the infoballoon. |
IWSize
|
getSize()
Returns the size of the info balloon. |
void
|
setAutoPan(panMapBool)
If the whole popup should be visible in the map-viewport after appending, set "true". it's possible that the popup intersects the map-viewport-bounds. Default is "true". |
void
|
setCloseImage(imagePath)
Sets the path to the image used by the close button. |
void
|
setContent(newContent)
Sets the content of the infoballoon. |
void
|
setSize(newSize)
Resizes the balloon to the specified size. |
String
|
toString()
Returns a string representation of this info balloon. |
Methods inherited from class IWWindowOverlay |
getAnchor() |
setAnchor(anchor) |
setCoordinate(coordinate) |
getCoordinate() |
destroyWindowOverlay() |
redraw() |
Methods inherited from class IWMapElement |
isDisplayed() |
getParent() |
setParent(parent) |
isVisible() |
setVisible(visible) |
setPrintable(printable) |
isPrintable() |
setContainerClassname(classname) |
getContainer() |
setContainer(newContainer) |
setId(id) |
getId() |
onContextMenu(event) |
onMouseUp(event) |
onMouseDown(event) |
onMouseMove(event) |
onMouseOut(event) |
onMouseOver(event) |
onClick(event) |
onDblClick(event) |
onSelect(event) |
onMouseWheel(event) |
beforeAppend() |
beforeRemove() |
afterRemove() |
destroyMapElement() |
registerEvents(container) |
Constructor Detail |
IWInfoBalloon(map, coordinate, content)
IWMap map
IWCoordinate coordinate
Object content
- DOMElement or String
Method Detail |
void afterAppend()
void
calculateSize()
void destroy()
removeWindowOverlay
method.
void
String getCloseImage()
String
Object getContent()
Object
IWSize getSize()
IWSize
void setAutoPan(panMapBool)
boolean panMapBool
void
void setCloseImage(imagePath)
String imagePath
void
void setContent(newContent)
Object newContent
- the new content of the infoballoon
void
void setSize(newSize)
IWSize newSize
- the new size of the infoballoon
void
String toString()
String