MapQuest Advantage TileMap Toolkit Reference Documentation

Class MQPoi

Object
   |
   +--MQPoi

class 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

altStateFlag

Object altStateFlag

dragFlag

Object dragFlag

dragLeft

Object dragLeft

dragTop

Object dragTop

isDragging

Object isDragging

keepRolloverOnDrag

Object keepRolloverOnDrag

labelSpan

Object labelSpan

labelText

Object labelText

leaderLine

Object leaderLine

leaderLineColor

Object leaderLineColor

leaderLineDot

Object leaderLineDot

leaderLineDotIcon

Object leaderLineDotIcon

leaderLineDotImage

Object leaderLineDotImage

mqAltMapIcon

Object mqAltMapIcon

snapback

Object snapback

Constructor Detail

MQPoi

MQPoi(<MQLatLng> mqLatLng, <MQMapIcon> mqMapIcon)

Method Detail

finishDrag

void finishDrag()

getAltIcon

MQMapIcon getAltIcon()

getAltStateFlag

boolean getAltStateFlag()

getDraggable

boolean getDraggable()

getElement

HTMLElement getElement()

getIcon

MQMapIcon getIcon()

getInfoWindow

MQInfoWindow getInfoWindow()

getKey

string getKey()

getLabel

string getLabel()

getLabelStyle

CSS2Properties getLabelStyle()

getLatLng

MQLatLng getLatLng()

getLeaderLineColor

string getLeaderLineColor()

getLeaderLineDotImage

Object getLeaderLineDotImage()

getRolloverDrag

Object getRolloverDrag()

getSnapback

boolean getSnapback()

isIconVisible

boolean isIconVisible()

isLabelVisible

boolean isLabelVisible()

isRolloverEnabled

boolean isRolloverEnabled()

isVisible

boolean isVisible()

redraw

void redraw()

redrawLabel

void redrawLabel()

setAltIcon

void setAltIcon(<MQMapIcon> mqAltMapIcon)

setAltStateFlag

void setAltStateFlag(<boolean> b)

setDraggable

void setDraggable(<boolean> isEnabled)

setIcon

void setIcon(<MQMapIcon> mqMapIcon)

setIconVisible

void setIconVisible(<boolean> b)

setInfoContentElement

void setInfoContentElement(<HTMLElement> contentContainer)

setInfoContentHTML

void setInfoContentHTML(<string> content)

setInfoTitleElement

void setInfoTitleElement(<HTMLElement> titleContainer)

setInfoTitleHTML

void setInfoTitleHTML(<string> title)

setKey

void setKey(<string> key)

setLabel

void setLabel(<string> label, <string> className)

setLabelVisible

void setLabelVisible(<boolean> b)

setLatLng

void setLatLng(<MQLatLng> mqLatLng)

setLeaderLineColor

void setLeaderLineColor(<string> c)

setLeaderLineDotImage

void setLeaderLineDotImage(<string> url, <int> width, <int> height)

setLevel

void setLevel(<integer> i)

setRolloverDrag

void setRolloverDrag(<boolean> b)

setRolloverEnabled

void setRolloverEnabled(<boolean> benable)

setSnapback

void setSnapback(snap)

setVisible

void setVisible(<boolean> b)

showInfoWindow

void showInfoWindow()

showRolloverWindow

void showRolloverWindow(e)

MapQuest Advantage TileMap Toolkit Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:28 2007