|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MQPoi
Describes a point of interest (POI) which is best represented as a
simple point on the map. Examples are schools, restaurants, airports, hotels,
landmarks, and any other type of location that can be described as a point
on a map.
Defined in features.js
| Field Summary | |
Object |
altStateFlag
|
Object |
dragFlag
|
Object |
dragLeft
|
Object |
dragTop
|
Object |
isDragging
|
Object |
keepRolloverOnDrag
|
Object |
labelSpan
|
Object |
labelText
|
Object |
leaderLine
|
Object |
leaderLineColor
|
Object |
leaderLineDot
|
Object |
leaderLineDotIcon
|
Object |
leaderLineDotImage
|
Object |
mqAltMapIcon
|
Object |
snapback
|
| Constructor Summary | |
MQPoi
(<MQLatLng> mqLatLng, <MQMapIcon> mqMapIcon)
Constructs a MQPoi object. |
|
| Method Summary | |
void
|
finishDrag()
|
MQMapIcon
|
getAltIcon()
Returns the icon of this poi. |
boolean
|
getAltStateFlag()
Returns true if this poi's alt state is true, false otherwise. |
boolean
|
getDraggable()
Returns the current draggable status of the Poi. |
HTMLElement
|
getElement()
Returns the Element node of this poi. |
MQMapIcon
|
getIcon()
Returns the icon of this poi. |
MQInfoWindow
|
getInfoWindow()
Returns a reference to the MQInfoWindow. |
string
|
getKey()
Returns the key of this poi. |
string
|
getLabel()
Returns the label for this poi. |
CSS2Properties
|
getLabelStyle()
Returns the label style for this poi. |
MQLatLng
|
getLatLng()
Returns the latitude/longitude coordinate of this poi. |
string
|
getLeaderLineColor()
Returns the current leader line color of the Poi. |
Object
|
getLeaderLineDotImage()
Returns the leader line dot image. |
Object
|
getRolloverDrag()
Returns the drag status of the rollover. |
boolean
|
getSnapback()
Returns a current snapback status of this poi when draggable. |
boolean
|
isIconVisible()
Returns true if this poi icon is visible, false otherwise. |
boolean
|
isLabelVisible()
Returns true if this poi label is visible, false otherwise. |
boolean
|
isRolloverEnabled()
Returns true if a rollover is enabled for this poi, false otherwise. |
boolean
|
isVisible()
Returns true if this poi is visible, false otherwise. |
void
|
redraw()
Redraws this poi. |
void
|
redrawLabel()
Redraws this poi label. |
void
|
setAltIcon(<MQMapIcon> mqAltMapIcon)
Sets the alt icon of this poi. |
void
|
setAltStateFlag(<boolean> b)
Sets the poi's alt state flag. |
void
|
setDraggable(<boolean> isEnabled)
Sets the draggable status of the Poi. |
void
|
setIcon(<MQMapIcon> mqMapIcon)
Sets the icon of this poi. |
void
|
setIconVisible(<boolean> b)
Makes this poi icon visible or invisible. |
void
|
setInfoContentElement(<HTMLElement> contentContainer)
Sets the info window content element for this poi. |
void
|
setInfoContentHTML(<string> content)
Sets the info window content for this poi. |
void
|
setInfoTitleElement(<HTMLElement> titleContainer)
Sets the info window title element for this poi. |
void
|
setInfoTitleHTML(<string> title)
Sets the info window title for this poi. |
void
|
setKey(<string> key)
Sets the key for this poi. |
void
|
setLabel(<string> label, <string> className)
Sets the label for this poi to the specified label string. |
void
|
setLabelVisible(<boolean> b)
Makes this poi label visible or invisible. |
void
|
setLatLng(<MQLatLng> mqLatLng)
Sets the latitude/longitude coordinate of this poi. |
void
|
setLeaderLineColor(<string> c)
Sets the snapback status of the Poi. |
void
|
setLeaderLineDotImage(<string> url, <int> width, <int> height)
Sets the leader line dot image. |
void
|
setLevel(<integer> i)
Makes this poi change zIndex to affect visibility. |
void
|
setRolloverDrag(<boolean> b)
Sets whether to drag the rollover with the poi. |
void
|
setRolloverEnabled(<boolean> benable)
Enables or disables a rollover for this poi. |
void
|
setSnapback(snap)
Sets the snapback status of the Poi. |
void
|
setVisible(<boolean> b)
Makes this poi visible or invisible. |
void
|
showInfoWindow()
Displays map's info window at this location, populated with content for this MQPoi |
void
|
showRolloverWindow(e)
Displays map's rollover window at this location, populated with content for this MQPoi |
| Field Detail |
Object altStateFlag
Object dragFlag
Object dragLeft
Object dragTop
Object isDragging
Object keepRolloverOnDrag
Object labelSpan
Object labelText
Object leaderLine
Object leaderLineColor
Object leaderLineDot
Object leaderLineDotIcon
Object leaderLineDotImage
Object mqAltMapIcon
Object snapback
| Constructor Detail |
MQPoi(<MQLatLng> mqLatLng, <MQMapIcon> mqMapIcon)
mqLatLng - Latitude/Longitude specifying the location of the point on the map.
mqMapIcon - OPTIONAL: if specified the icon that represents this poi else a default icon will be used.
| Method Detail |
void finishDrag()
MQMapIcon getAltIcon()
boolean getAltStateFlag()
boolean getDraggable()
HTMLElement getElement()
MQMapIcon getIcon()
MQInfoWindow getInfoWindow()
string getKey()
string getLabel()
CSS2Properties getLabelStyle()
MQLatLng getLatLng()
string getLeaderLineColor()
Object getLeaderLineDotImage()
Object getRolloverDrag()
boolean getSnapback()
boolean isIconVisible()
boolean isLabelVisible()
boolean isRolloverEnabled()
boolean isVisible()
void redraw()
void redrawLabel()
void setAltIcon(<MQMapIcon> mqAltMapIcon)
mqAltMapIcon - The new alt icon for this poi.
void setAltStateFlag(<boolean> b)
b - true to make the alt icon visible, false to make primary icon visible.
void setDraggable(<boolean> isEnabled)
isEnabled - - Whether the draggable state is enabled.\
keepRolloverOnDrag - (optional) - Whether to keep a displayed rollover during the drag.
void setIcon(<MQMapIcon> mqMapIcon)
mqMapIcon - The new icon for this poi.
void setIconVisible(<boolean> b)
b - true to make icon visible; false to make invisible.
void setInfoContentElement(<HTMLElement> contentContainer)
contentContainer - A new info window content HTMLElement.
void setInfoContentHTML(<string> content)
content - An HTML string for the info window content.
void setInfoTitleElement(<HTMLElement> titleContainer)
titleContainer - A new info window title HTMLElement.
void setInfoTitleHTML(<string> title)
title - An HTML string for the info window title.
void setKey(<string> key)
key - The new key for this poi.
void setLabel(<string> label, <string> className)
label - The new label string.
className - OPTIONAL: If specified the CSS class for the label, otherwise the default CSS class will be used.
void setLabelVisible(<boolean> b)
b - true to make label visible; false to make invisible.
void setLatLng(<MQLatLng> mqLatLng)
mqLatLng - The new latitude/longitude coordinate of this poi.
void setLeaderLineColor(<string> c)
c - - Hex value of the color to use for this poi's leaderline..
void setLeaderLineDotImage(<string> url, <int> width, <int> height)
url - Full url to the image.
width - Width of the image.
height - Height of the image.
void setLevel(<integer> i)
i - higher to "bring to front"; lower to "push to back".
void setRolloverDrag(<boolean> b)
b - True to include the rollover with the poi drag, false otherwise..
void setRolloverEnabled(<boolean> benable)
benable - true to enable rollover; false to disable rollover.
void setSnapback(snap)
snapback - - Whether the draggable state is enabled.
void setVisible(<boolean> b)
b - true to make visible; false to make invisible.
void showInfoWindow()
void showRolloverWindow(e)
|
MapQuest Advantage TileMap Toolkit Reference Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||