|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MQInfoWindow
MQInfoWindow provides click-to-open popup windows for MQPois on
a Mapquest Draggable map.
Defined in infowindow.js
| Constructor Summary | |
MQInfoWindow
(<MQTileMap> map)
Constructs a MQInfoWindow object. |
|
| Method Summary | |
Object
|
getMaxWidth()
Returns the maxwidth of the infowindow set by the user. |
Object
|
getMinWidth()
Returns the minwidth of the infowindow set by the user. |
MQPoi or MQTileMap
|
getOpener()
Returns a reference to the object that opened this info window. |
Object
|
getPixelOffset()
Returns the offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored. |
Object
|
getPointLL()
Returns the geographical point at which the info window is anchored. |
Object
|
getPointXY()
Returns the screen coordinates at which the info window is anchored. |
Object
|
getTitleBackgroundColor()
Returns the current user-defined background color of the title section of the InfoWindow. |
void
|
hide()
Hides the info window if it is currently visible . |
Object
|
isHidden()
Returns true if the info window is hidden. |
void
|
modify(<MQPoint> point, <String> title, <Object> content, <MQPoint> offset)
Modifies the state of the info window. |
void
|
setMaxWidth(<integer> width)
Sets the maximum width allowed for the infowindow. |
void
|
setMinWidth(<integer> width)
Sets the minimum width allowed for the infowindow. |
void
|
setTitleBackgroundColor(<String> color)
Function to set the background color of the title section of the InfoWindow |
void
|
show()
Makes the info window visible if it is currently hidden. |
| Constructor Detail |
MQInfoWindow(<MQTileMap> map)
map - The map this object will be contained by.
| Method Detail |
Object getMaxWidth()
Object getMinWidth()
MQPoi or MQTileMap getOpener()
Object getPixelOffset()
Object getPointLL()
Object getPointXY()
Object getTitleBackgroundColor()
void hide()
Object isHidden()
void modify(<MQPoint> point, <String> title, <Object> content, <MQPoint> offset)
point - A point representing the xy co-ordinates of the poi on the map.
title - The html string that is displayed as the infowindow title
content - The html dom element that get displayed as the rollover content.
offset - The infowindow anchor offset in xy co-ordinates.
void setMaxWidth(<integer> width)
width - The maxwidth of infowindow in pixels
void setMinWidth(<integer> width)
width - The minwidth of infowindow in pixels
void setTitleBackgroundColor(<String> color)
color - The new color to use (eg "#CC7788" or "blue"). To use the default color specified in .css, use empty string ("").
void show()
|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||