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. |
void
|
destroy()
Destroys the infoballoon. Call this method after the infoballoon 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 infoballoon. |
void
|
setAutoPan(panMapBool)
If the whole popup should be visible in the map-viewport after appending, set "true". its 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(size)
Resizes the balloon to the specified size. |
String
|
toString()
Returns a string representation of this infoballoon. |
Methods inherited from class IWWindowOverlay |
getAnchor() |
setAnchor(newAnchor) |
setCoordinate(coordinate) |
getCoordinate() |
destroyWindowOverlay() |
redraw() |
Methods inherited from class IWMapElement |
isDisplayed() |
getParent() |
setParent(newParent) |
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() |
Constructor Detail |
IWInfoBalloon(map, coordinate, content)
IWMap map
IWCoordinate coordinate
Object content
- DOMElement or String
Method Detail |
void afterAppend()
void
void destroy()
removeWindowOverlay
method.
void
String getCloseImage()
String
Object getContent()
Object
IWSize getSize()
IWSize
void setAutoPan(panMapBool)
Bool panMapBool
void
void setCloseImage(imagePath)
String imagePath
void
void setContent(newContent)
Object newContent
- the new content of the infoballoon
void
void setSize(size)
IWSize size
- the new size of the infoballoon
void
String toString()
String